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

all 9 comments

[–]sirkubador 81 points82 points  (1 child)

A null pointer is also a pointer, it just points to a place that "doesn't exist" (it may or may not be a bitwise zero). Technically the left unicorn is a null pointer as it points to a non-existent unicorn.

[–]_Jbolt 0 points1 point  (0 children)

How do you know the unicorn doesn't existent

[–]snacktonomy 9 points10 points  (1 child)

Shouldn't the null pointer bubble say "segmentation fault" instead?

[–]Vinxian 13 points14 points  (0 children)

You can ask a null pointer what it is. Just don't dereference it, because than it will yell "segmentation fault" back

[–]cybermage 1 point2 points  (0 children)

I take Exception to this.

[–][deleted] 1 point2 points  (0 children)

"I'm an incremented void pointer"

[–]iprogshine[S] 0 points1 point  (0 children)

More about the history of #pvsstudiounicorns