# command line : # $ make pointers; ./pointers > pointers_out.txt # then I edited the output manually ... ---------------------- 4 numbers from thelist: [10, 20, 30, 40, ] 3 numbers from numptrA = : [20, 30, 40, ] 3 numbers from numptrB = : [10, 20, 30, ] addresses : &thelist = 0x7fff81b24670 &a = 0x7fff81b24658 &numptrA = 0x7fff81b24660 &numptrB = 0x7fff81b24668 &b = 0x7fff81b2465c values : thelist = 0x7fff81b24670 a = 0x4d2 numptrA = 0x7fff81b24674 numptrB = 0x7fff81b24670 b = 0x155b ============================= building a memory map by hand : python: a = 0x7fff81b24670 + 32 for i in range(64): print(hex(a)) a = a - 1 0x7fffdea0fccf 0x7fffdea0fcce 0x7fffdea0fccd 0x7fffdea0fccc 0x7fffdea0fccb 0x7fffdea0fcca 0x7fffdea0fcc9 0x7fffdea0fcc8 thelist[2] 0x7fffdea0fcc7 0x7fffdea0fcc6 0x7fffdea0fcc5 0x7fffdea0fcc4 thelist[1] 0x7fffdea0fcc3 0x7fffdea0fcc2 0x7fffdea0fcc1 0x7fffdea0fcc0 thelist[0] (4 bytes per int) 0x7fffdea0fcbf 0x7fffdea0fcbe 0x7fffdea0fcbd 0x7fffdea0fcbc 0x7fffdea0fcbb 0x7fffdea0fcba 2 to 7 0x7fffdea0fcb9 1 0x7fffdea0fcb8 numptrB 0 (8 bytes = 64bits) 0x7fffdea0fcb7 0x7fffdea0fcb6 0x7fffdea0fcb5 0x7fffdea0fcb4 0x7fffdea0fcb3 3 to 7 0x7fffdea0fcb2 2 0x7fffdea0fcb1 1 0x7fffdea0fcb0 numptrA 0 (4 bytes = 32bits) 0x7fffdea0fcaf 0x7fffdea0fcae 0x7fffdea0fcad 1 to 3 0x7fffdea0fcac b 0 0x7fffdea0fcab 0x7fffdea0fcaa 0x7fffdea0fca9 1 to 3 0x7fffdea0fca8 a 0 (4 bytes = 32bits) 0x7fffdea0fca7 0x7fffdea0fca6 0x7fffdea0fca5 0x7fffdea0fca4 0x7fffdea0fca3 0x7fffdea0fca2 0x7fffdea0fca1 0x7fffdea0fca0