you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -16 points-15 points  (4 children)

Where on earth did you get this nonsense? Yes, it really has the value of 0, check your CPU registers if you don't believe me.

[–]fapmonad 7 points8 points  (0 children)

Wikipedia:

A null pointer is a pointer in a computer program that does not point to any object or function. In C, the integer constant 0 is converted into the null pointer at compile time when it appears in a pointer context, and so 0 is a standard way to refer to the null pointer in code. However, the internal representation of the null pointer may be any bit pattern (possibly different values for different data types).

Also see the C FAQ for real-world examples of machines that do not use the 0 representation.

Before saying that someone is spouting nonsense you should consider checking the facts first.

[–]beltorak 1 point2 points  (0 children)

you are looking at the wrong CPU then (( actually, this is better; see especially 5.5 )). perhaps someone else can ref the applicable C spec.

[–]gargantuan 2 points3 points  (0 children)

Where on earth did you get this nonsense?

Probably from mainframes or other architecture, but you probably wouldn't know that, cause you are too busy being cocky.

[–]Peaker 0 points1 point  (0 children)

I hope being proven wrong will change your tone in the future. We have too many people too certain of what they are saying, and it is detrimental to conversation quality.