C Language MCQ - English
In which header file is the NULL macro defined?
stdio.h
stddef.h
stdio.h and stddef.h
math.h
Answer : C
View More Related Question
1) Comment on the following pointer declaration. int *ptr, p;
ptr is a pointer to integer, p is not
ptr and p, both are pointers to integer
ptr is a pointer to integer, p may or may not be
ptr and p both are not pointers to integer
View Answer
2) Which is an indirection operator among the following?
3) How many bytes are occupied by near, far and huge pointers (DOS)?
4) What will be the output of the following C code? #include <stdio.h>
int main()
{
int *ptr, a = 10;
ptr = &a;
*ptr += 1;
printf("%d,%d/n", *ptr, a);
}
5) What will be the output of the following C code? #include <stdio.h>
void main()
{
int x = 0;
int *ptr = &x;
printf("%d\n", *ptr);
}