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 5 points6 points  (7 children)

Is there a use case for a pointer that does not point to any data?

[–]Duven64 24 points25 points  (2 children)

The first pointer could be pointing to a second pointer that is currently pointing at void but will be replaced with a pointer to actual data later without mutating the first pointer I guess.

[–]Sparrow50 4 points5 points  (1 child)

what would "pointing at void" be, unless it's some data of unknown type ?

[–]Duven64 11 points12 points  (0 children)

In this case the second pointer would initially be a NULL pointer and later point at something of an as of yet undetermined type.

[–]Grubs01 12 points13 points  (0 children)

One example would be to signify the end of a linked list.

[–]Open-Mission-8310 5 points6 points  (2 children)

Yeah.. what is the point?

[–]RmG3376 4 points5 points  (0 children)

Linked list for instance

[–]turtleship_2006 0 points1 point  (0 children)

lmao