C and C++ programs and MySQL
Always thinking in engineering style...
Showing posts with label
Pointer concept
.
Show all posts
Showing posts with label
Pointer concept
.
Show all posts
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
Older Posts
Home
Subscribe to:
Posts (Atom)