C Language MCQ - English
In which header file is the NULL macro defined?
Home | Discussion ForumIn which header file is the NULL macro defined?
Answer : C
View More Related Question
1) What will be the output of the following C code? #include <stdio.h>
int main()
{
int i = 10;
void *p = &i;
printf("%f\n", *(float*)p);
return 0;
}
2) What will be the output of the program ? #include<stdio.h>
int main()
{
int x=30, *y, *z;
y=&x; /* Assume address of x is 500 and integer is 4 byte size */
z=y;
*y++=*z++;
x++;
printf("x=%d, y=%d, z=%d\n", x, y, z);
return 0;
}
3) In which header file is the NULL macro defined?
4) Which is an indirection operator among the following?
5) What will be the output of the following C code? #include <stdio.h> int *f();
int main()
{
int *p = f();
printf("%d\n", *p);
}
int *f()
{
int *j = (int*)malloc(sizeof(int));
*j = 10;
return j;
}
View Answer