4 ms·
For code that has undefined behavior, the compiler may refuse to compile it or compile it into literally anything. A common mistake is expecting code that has
by tinus_hn 3y ago
For code that has undefined behavior, the compiler may refuse to compile it or compile it into literally anything.
A common mistake is expecting code that has undefined behavior to be compiled into something that makes logical sense.
You may disagree with it but that’s how compilers work and how the standard describes they should work.