Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. antoniox@debian:~/practice$ cat add.c
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4.  
  5. int main(void) {
  6. int x=7, y;
  7.  
  8. void * p = &x;
  9.  
  10. y = *((int *) p);
  11.  
  12. printf("%d\n", y);
  13. return 0;
  14. }
  15. antoniox@debian:~/practice$ gcc -o add add.c
  16. antoniox@debian:~/practice$ ./add
  17. 7
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement