Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int yoba() {
- int a;
- int &b = a;
- int *c = &a;
- return 0;
- }
- int main() {
- yoba();
- return 0;
- }
- /*
- (gdb) p &a
- $1 = (int *) 0x3ffffffcb44
- (gdb) p &b
- $2 = (int *) 0x3ffffffcb44
- (gdb) p sizeof(a)
- $3 = 4
- (gdb) p sizeof(b)
- $4 = 4
- (gdb) p sizeof(c)
- $5 = 8
- (gdb) p c
- $6 = (int *) 0x3ffffffcb44
- */
Add Comment
Please, Sign In to add comment