Sail E0 Webinar
Question

Is there any difference between the following two statements?
char *p=0;
char *t=NULL;


Options:
A .  Yes
B .  No
Answer: Option B

NULL is #defined as 0 in the 'stdio.h' file. Thus, both p and t are NULL pointers.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers