C Language MCQ - English
A pointer is
Home | Discussion ForumA pointer is
A keyword used to create variables
A variable that stores address of an instruction
A variable that stores address of other variable
All of the above
Answer : C
View More Related Question
1) Which of the following does not initialize ptr to null (assuming variable declaration of a as int a=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) What is (void*)0?
5) What will be the output of the program ? #include<stdio.h>
int main()
{
int i=3, *j, k;
j = &i;
printf("%d\n", i**j*i+*j);
return 0;
}