Sail E0 Webinar
Question
Determine output:
#include
void main()
{
char *p = NULL;
char *q = 0;
if(p)
printf(" p ");
else
printf("nullp");
if(q)
printf("q");
else
printf(" nullq");
}
Options:
A .  p q
B .  Depends on the compiler
C .  x nullq where x can be p or nullp depending on the value of NULL
D .  nullp nullq
Answer: Option D

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers