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");
}
#include
void main()
{
char *p = NULL;
char *q = 0;
if(p)
printf(" p ");
else
printf("nullp");
if(q)
printf("q");
else
printf(" nullq");
}
Answer: Option D
Submit Your Solution Below and Earn Points !
Submit Your Solution Below and Earn Points !
More Questions on This Topic :
Question 1. The address operator &, cannot act on....
Question 2. The statement
int **a;....
Question 5. The operator > and....
Question 6. The declaration
int (*p) [5];
means....
Question 7. Comment on the following?
const int *ptr;....
Submit Solution