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.

Harry said:   1 decade ago
NO, uninitialized pointer will not always be holding the garbage value. It will hold garbage value when it is declared locally and it will hold 0 value when it is declared locally.

A jain said:   1 decade ago
I agree with gazzye.

Bhuvana said:   1 decade ago
Ya it will hold the garbage value.

Gazzye said:   2 decades ago
A Null pointer is one which holds 0 (zero) as its value and uninitialized pointer may have some garbage value. To check this out we can print the value of pointer.


Post your comments here:

Your comments will be displayed after verification.