Ask your own question, for FREE!
Computer Science 8 Online
OpenStudy (anonymous):

What is the difference between the NULL pointer and un initialized pointer? i.e. int *p; int *p = NULL; what difference they both make?

OpenStudy (anonymous):

The null pointer will not be pointing to any location but uninitialized pointer can have garbage value which would point to some location.

OpenStudy (anonymous):

wow thanks :) @ganesh7

OpenStudy (anonymous):

Uninitilized pointer can have any garbage value and this garbase value point to some memory location. But if you initilize the point with null value (i.e. 0) then it will point to no where. Pointer initilized with NULL value is very usefull in preventing the accidental error, deffects etc. Pointer NULL initilization is highly practiced in industry.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!