Advertisement
Guest User

Untitled

a guest
Dec 15th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <sys/types.h>
  3. int main(int argc, char** argv)
  4. {
  5. int a =42;
  6. int b=7;
  7. int c=777;
  8. int *t=&a;
  9. int *u=NULL;
  10. printf("%d %d\n",a,*t);
  11.  
  12. c=b;
  13. u=t;
  14. printf("%d %d\n",c,*u);
  15.  
  16. a=8;
  17. b=8;
  18. printf("%d %d %d %d\n", b,c,*t,*u);
  19. *t=123;
  20. *t=c;
  21. printf("%d %d %d %d\n", b,c,*t,*u);
  22.  
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement