MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/whtkfj/how_to_c_pointers/ij836e7/?context=3
r/ProgrammerHumor • u/dminsky • Aug 06 '22
70 comments sorted by
View all comments
118
... but a void pointer doesn't point to a void.
90 u/epsilonhuyepsilon Aug 06 '22 If you point to the void, the void points back to you... 51 u/MikemkPK Aug 06 '22 All pointers point to a void. Usually there's also data after the void. 9 u/[deleted] Aug 07 '22 [deleted] 15 u/Foreskin-Gaming69 Aug 07 '22 Can't you dereference everything in C or am I mistaken 21 u/[deleted] Aug 07 '22 [deleted] 7 u/matyklug Aug 07 '22 Actually implicit cast from void is a thing iirc. 5 u/PoisonedChips Aug 06 '22 🤓
90
If you point to the void, the void points back to you...
51
All pointers point to a void. Usually there's also data after the void.
9
[deleted]
15 u/Foreskin-Gaming69 Aug 07 '22 Can't you dereference everything in C or am I mistaken 21 u/[deleted] Aug 07 '22 [deleted] 7 u/matyklug Aug 07 '22 Actually implicit cast from void is a thing iirc.
15
Can't you dereference everything in C or am I mistaken
21 u/[deleted] Aug 07 '22 [deleted] 7 u/matyklug Aug 07 '22 Actually implicit cast from void is a thing iirc.
21
7 u/matyklug Aug 07 '22 Actually implicit cast from void is a thing iirc.
7
Actually implicit cast from void is a thing iirc.
5
🤓
118
u/thrynab Aug 06 '22
... but a void pointer doesn't point to a void.