Ask your own question, for FREE!
Computer Science 10 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!
Latest Questions
Arriyanalol: i need help
1 day ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
1 day ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
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!