Monthly Archives: January 2019

[C/C++] Surprises and Undefined Behavior From Unsigned Integer Promotion

Consider this code: Figure 1 When you run it you’ll get the output Here’s a link to it on wandbox if you want to try it out. For clarity, there’s no undefined behavior in the program and the compiler isn’t … Continue reading

Posted in Uncategorized | Leave a comment