You are not logged in.
- Topics: Active | Unanswered
Pages:: 1
#1 2015-09-12 06:06:38
C Language Pointer Determine Output:
C Programming Quizzes C Language Pointer
Directions:
Determine output:
Question:
#include <stdio.h>
void main()
{
char *p = NULL;
char *q = 0;
if(p)
printf(" p ");
else
printf("nullp");
if(q)
printf("q");
else
printf(" nullq");
}
Option A):
nullp nullq
Option B):
Depends on the compiler
Option C):
x nullq where x can be p or nullp depending on the value of NULL
Option D):
p q
Correct Answer is Option A):
nullp nullq
Failure is the first step towards seccess.
Offline
2015-09-12 06:06:38
- Advertisement
- Ads By Google
Re: C Language Pointer Determine Output:
\n
Pages:: 1