Virajsinh

A_PRM_03

Oct 7th, 2017
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. /* Write a Program to Print Address of Variable */
  2.  
  3. #include<stdio.h>
  4. #include<conio.h>
  5. void main()
  6. {
  7.     int x=10;
  8.     int *p;
  9.     clrscr();
  10.     p=&x;
  11.  
  12.     printf("\n Address Of x = %u",&x);
  13.     printf("\n Address Of p = %u",&p);
  14.     printf("\n *p = %d",*p);
  15.     printf("\n p = %u",&p);
  16.     printf("\n *(&x) = %d", *(&x));
  17.     getch();
  18. }
Add Comment
Please, Sign In to add comment