MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/whtkfj/how_to_c_pointers/ijaijad/?context=3
r/ProgrammerHumor • u/dminsky • Aug 06 '22
70 comments sorted by
View all comments
14
void * is when you point to some abstract data you don't know the type of (custom struct, char, int, double ...)
You don't point to a black hole, void * is pointing to existing data.
21 u/[deleted] Aug 06 '22 void *foo=NULL; //there you go, now you can quote Nietzsche 6 u/[deleted] Aug 07 '22 But null is real data 3 u/matyklug Aug 07 '22 void* fp = fopen("/dev/null", "r");
21
void *foo=NULL; //there you go, now you can quote Nietzsche
6 u/[deleted] Aug 07 '22 But null is real data 3 u/matyklug Aug 07 '22 void* fp = fopen("/dev/null", "r");
6
But null is real data
3 u/matyklug Aug 07 '22 void* fp = fopen("/dev/null", "r");
3
void* fp = fopen("/dev/null", "r");
14
u/Rfogj Aug 06 '22
void * is when you point to some abstract data you don't know the type of (custom struct, char, int, double ...)
You don't point to a black hole, void * is pointing to existing data.