r/C_Programming • • Apr 24 '24

The way C Programers explain pointers

https://imgs.xkcd.com/comics/pointers.png
652 Upvotes

50 comments sorted by

View all comments

22

u/gremolata Apr 24 '24

You can tell the joke is old because these are 32-bit ones!

22

u/goose_on_fire Apr 24 '24

I mean, they are also 64-bit ones

4

u/[deleted] Apr 24 '24

I don't get it? The largest is 0x7363682E -- which is still a positive decimal (base 10) value in a signed 32-bit integer.

MSB is zero:

01110011 01100011 01101000 00101110 b

I guess we mean it could also be a 64-bit pointer, if we expressed as 0x000000007363682E

Do I get it now?

4

u/goose_on_fire Apr 24 '24

Yeah, the 64-bit address space includes the 32-bit address space, don't overthink it :)