3 ms·
What? If you have a null pointer to a class, and try to reference the member that starts 156 bytes from the start of the class, you’ll deference 0x9c (0 + 156)
by taspeotis 2y ago
What? If you have a null pointer to a class, and try to reference the member that starts 156 bytes from the start of the class, you’ll deference 0x9c (0 + 156)
- emmelaich 2y agoStrangely, not necessarily on every implementation on every processor. It's not guaranteed that NULL is 0. Still, I don't think you'd find a counterexample in the wild these days.
- deleted 2y ago[deleted]
- deleted 2y ago[deleted]