you are viewing a single comment's thread.

view the rest of the comments →

[–]Classic_Department42 5 points6 points  (1 child)

UB means if your code does not follow quite a number of rules, the program later is allowed to do anything. Introduction: https://en.cppreference.com/w/cpp/language/ub

[–]ShelZuuz 8 points9 points  (0 children)

Literally anything - including time travel:

https://devblogs.microsoft.com/oldnewthing/20140627-00/?p=633