Re:*(char*)0 = 0; - What Does the C++ Programmer Intend with...
by layer8 on Tuesday October 17, 2023 @10:25PM
(#37924220)
Yeah, if you're going to be pedantic, check your facts, see the sibling. Since I'm assuming an 8086 interrupt table, I'm also going to assume 8-bit chars, as that's the x86 addressing model. And dereferencing a null pointer is UB, so you can't count on anything anyway without making further assumptions.
[ Parent
| on HN ]
There are no comments on this comment yet.