Pointers Questions and Answers
Practice ModeShowing 10 of 217 questions
Q131
Find the output
void main ( )
{
int i=4, j=-3;
mul (&i, j);
printf ("%d %d", i, j);
}
mu1 (int *a, int b)
{
*a=*a **a;
b=b*b;
}
Answer: Option C
Q132
Find the out
#include "studio.h"
void main ( )
{
printf ("%d %d"),
sizeof (NULL), sizeof (" "));
}
Answer: Option C
Q133
Where can pointers be used
I. Dynamic memory allocation'
II. Call by reference
III. Implementing trees
IV. Accessing string elements
Answer: Option D
Q134
What is the size of pointer if memory model is compact in Turbo C?
Answer: Option C
Q135
Find the output
void main ( )
{
int a=5, *p=&a;
a=XXX (&p);
printf ("%d %d", a, *p);
}
XXX (int **p)
{
int b= **p***p;
}
Answer: Option A
Q136
The poitner which is created in data segment and holds the address within data segment is known as:
Answer: Option A
Q137
What is the difference between ++*p and *p++?
Answer: Option C
Q138
EP_SEG( ), FP_OFF ( ) are declared in which header file ?
Answer: Option B
Q139
What is the formula to find real address ?
Answer: Option A
Q140
What happens when far address is incremented ?
Answer: Option B