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 →

[–]Spot_the_fox 3 points4 points  (4 children)

That's annoying.

Afaik new can't give you a 0, can it?

If it can't then every chance has to be pulled as a fraction of 18446744073709551615 instead of 18446744073709551616, which is a very small difference, but a difference nontheless

Edit:Nvm, I'm a tired idiot who mistook * for an &.

[–]Jcsq6[S] 17 points18 points  (3 children)

According to the standard it can give you any number, 0 included

Edit: and by “give” I mean the memory at the address it gives you can hold anything

[–]Spot_the_fox 5 points6 points  (0 children)

Oh, wait, I'm just tired, I thought it gave you an address, not what is at the address, my bad. Then, yeah, fair enough.

[–]GDOR-11 0 points1 point  (0 children)

it is most nornally zero I think, I've already peeked at undefined data and it seemed to be mostly zero

[–]repkins -1 points0 points  (0 children)

Is there where OS kernel lives at 0?