Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Write a Program to Print Address of Variable */
- #include<stdio.h>
- #include<conio.h>
- void main()
- {
- int x=10;
- int *p;
- clrscr();
- p=&x;
- printf("\n Address Of x = %u",&x);
- printf("\n Address Of p = %u",&p);
- printf("\n *p = %d",*p);
- printf("\n p = %u",&p);
- printf("\n *(&x) = %d", *(&x));
- getch();
- }
Add Comment
Please, Sign In to add comment