3 ms·
Thanks for inadvertently realizing my prediction. > When a C or C++ program triggers undefined behavior, anything is allowed to happen in the program execution
by nayuki 4y ago
Thanks for inadvertently realizing my prediction.
> When a C or C++ program triggers undefined behavior, anything is allowed to happen in the program execution. And by anything, I really mean anything: The program can crash with an error message, it can silently corrupt data, it can morph into a colorful video game, or it can even give the right result.
-- https://www.nayuki.io/page/undefined-behavior-in-c-and-cplusplus-programs https://www.nayuki.io/page/undefined-behavior-in-c-and-cplus...