Sir, the video is excellent. can you please show the solution to the problem you have demonstrated?. This will fill the gap. thanks a lot for nice material
@kannahpally if val > 0, it goes to the first statement where *ptr has no memory allocated (null pointer dereference) this will cause a segmentation fault. To fix the problem it should have
thank you for this video
jivealways 11 months ago 2
Sir, the video is excellent. can you please show the solution to the problem you have demonstrated?. This will fill the gap. thanks a lot for nice material
kannahpally 1 year ago
@kannahpally if val > 0, it goes to the first statement where *ptr has no memory allocated (null pointer dereference) this will cause a segmentation fault. To fix the problem it should have
ptr = (char *) malloc (10);
before *ptr = 0;
sineco 1 year ago
i really appreciate ur effort ... thanks a lot for the information ...
expecting lots of work from u...
arivukolunthu 2 years ago 2