Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- antoniox@debian:~/practice$ cat add.c
- #include <stdio.h>
- #include <stdlib.h>
- int main(void) {
- int x=7, y;
- void * p = &x;
- y = *((int *) p);
- printf("%d\n", y);
- return 0;
- }
- antoniox@debian:~/practice$ gcc -o add add.c
- antoniox@debian:~/practice$ ./add
- 7
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement