4 ms·
> Dereferencing NULL, in a C program, is ALWAYS undefined behavior. 1. you're not required to use C 2. an extension to the C standard can decide to define tha
by masklinn 11y ago
> Dereferencing NULL, in a C program, is ALWAYS undefined behavior.
1. you're not required to use C
2. an extension to the C standard can decide to define that behaviour
- cygx 11y agoAlso note that null pointers may not need to be represented by the all-zero bit pattern, ie the conversion (void*)(intptr_t)0 can in principle be more involved than a noop.