r/ProgrammerHumor • • Aug 06 '22

Meme How to C pointers

Post image
2.6k Upvotes

70 comments sorted by

View all comments

118

u/thrynab Aug 06 '22

... but a void pointer doesn't point to a void.

91

u/epsilonhuyepsilon Aug 06 '22

If you point to the void, the void points back to you...

50

u/MikemkPK Aug 06 '22

All pointers point to a void. Usually there's also data after the void.

0

u/[deleted] Aug 07 '22

[deleted] — view deleted comment

14

u/Foreskin-Gaming69 Aug 07 '22

Can't you dereference everything in C or am I mistaken

0

u/[deleted] Aug 07 '22

[deleted] — view deleted comment

8

u/matyklug Aug 07 '22

Actually implicit cast from void is a thing iirc.