Advertisement
sujonshekh

Pointer

Jan 23rd, 2017
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.16 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int x;
  5.     int *p;
  6.     x=20;
  7.     p=&x;
  8.     printf("%d",*p);
  9.     printf("\n%p",p);
  10.     *p=100;
  11.     printf("\n%d",x);
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement