Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(){
- int num=8, x=53, *xp;
- int* xp;
- xp = &x;
- num = *xp;
- //Pointer arithmetic
- printf("%p %p", xp, xp + 2);
- // &x = 0c, &x+2=0x14 (8 bytes added)
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement