2 ms·
> This statement cannot occur in a well formed standard C or C++ program Not true. It's illegal to execute that statement because of undefined behavior. But it
by nayuki 3y ago
> This statement cannot occur in a well formed standard C or C++ program
Not true. It's illegal to execute that statement because of undefined behavior. But it's legal to have: if (false) { *(char*)0 = 0; }
(And of course it's legal to #ifdef it out or comment it out, but that's too much cheating.)
- sargstuff 3y agoUmm... lot of undefined behavior things in official C spec.