Wednesday, March 16, 2011

Pointer concept

# include "stdio.h"
int main()
{

int *p;
int a=5;
p=&a;

printf("%d, %d\n",*(&p),&*p);
return 0;
}

OUTPUT:
1245012, 1245012
Press any key to continue . . .




variable a p
value 5 1245012
Address 1245012 1245016

No comments:

Post a Comment