Pointers

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

A Yes

B No

ANS:B - No

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



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.