DIY
  •  
  • 9271
  • 2
C++
  •  
  • 8178
  • 1

Undefined Behavior and Fermat’s Last Theorem

Written by Tyomitch

In accordance with the C and C++ standards, if the program leads to an integer overflow or any other “undefined behavior” (UB), the result of the program performance can be anything: it can post obscenities to Twitter or format your disk… Unfortunately, “Easter eggs” that would make the program...

C++
  •  
  • 5878
  • 1
*nix
  •  
  • 4108