C Programming - Pointers - Discussion

Discussion Forum : Pointers - Yes / No Questions (Q.No. 3)
3.
Is the NULL pointer same as an uninitialised pointer?
Yes
No
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
14 comments Page 2 of 2.

Akash kumar said:   1 decade ago
This is simple concept that the null pointer has the value of 0 while the unitialized pointer has the garbage value which pointing anywhere in the memory.
(3)

Nap said:   1 decade ago
No, because pointers initially contains garbage values.
(2)

Kal said:   9 years ago
Uninitialized pointer results in the dangling pointer. So, both are different.

BCRT said:   9 years ago
In my view, a uninitialised pointer is that which is not pointing to anywhere, and a null pointer is also same. Because while coding we get to a sometime situation when we don't want to initialise a pointer at beginning AND SO FOR THAT WE INITIALIZE IT WITH THE NULLVALUE. SO IN THE CASE OF UNINITIALISED ALSO.


Post your comments here:

Your comments will be displayed after verification.