Wednesday, March 16, 2016

Question on Pointers

Question for your concept:

What will be the output of the following program?
#include<stdio.h>
main()
{
   int a, *p;
   a=100;
   p= &a;
   printf("%d %d %d", a, p, *p);
}

Assume address of variable a=100000H.


a. 100, 100000H, 100               b. 100000H,100,100

c. 100, 100000H,100000H       d. None

2 comments: