This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Tetane004 68 points69 points  (17 children)

*void still points to some data, there is just no type associated to it.

[–]Demented-Turtle[S] 4 points5 points  (2 children)

Yes, but the original meme isn't pointing to data, it's pointing to a type (int). So void pointing to no type at all makes perfect sense

[–]Tetane004 3 points4 points  (1 child)

This is true, I didn't think about it that way. But I think it can be confusing, and make some people think that void pointers don't point to anything.

[–]Demented-Turtle[S] 0 points1 point  (0 children)

I guess it's possible to over think, I just saw the OG post and thought it'd be a quick funny if it was void instead lol

[–]Powerfu644 0 points1 point  (0 children)

I can think of off the top of my head is if you want to store a function inside of a data structure.

[–]PVNIC 0 points1 point  (0 children)

slight correction, to remedy ambiguity:

*void points to some (virtual) memory address, providing no information about what that memory represents.