Pointers Questions and Answers
Practice ModeShowing 10 of 217 questions
Q141
What happens when huge pointer is incremented ?
Answer: Option C
Q142
Which of the following sttement is false ?
I. If real addresses are same for both far pointers, when pointers are same.
II. If real addresses are same for both huge pointers, then ponters are ame.
III. There are many far addresses for a single real address.
IV. There are many real addresses for a single far address
Answer: Option D
Q143
Find the output
vaoid main ( )
{
int *p, **q, i=5;
p=&i;
q=p;
**q=10;
printf ("%d %d", *p, **q);
}
Answer: Option D
Q144
Find the output
void main ( )
{
int x=5, *p, sum=0;
p=&x;
*p=10;
p=∑
*p=x;
printf ("%d %d %d", x, *p,sum);
}
Answer: Option C
Q145
Which of the following statement is false
Answer: Option A
Q146
Find the output
void main ( )
{
int *p, i=10;
void *q;
p=&i;
q=p;
printf ("%d", *q++);
}
Answer: Option C
Q147
State the true statement
Answer: Option D
Q148
Int far **p, here p is a
Answer: Option B
Q149
Find the output
void main ( )
{
int a [ ] ={1, 2, 3, 4, 5};
int i ;
for (i=0; i<5; i++)
{
printf ("%d", *a);
a++;
}
}
Answer: Option C
Q150
Null pointer assignment error occurs only in
Answer: Option A