r/C_Programming • … • u/am_Snowie is doing ~INT_MAX undefined behavior? basically the title, i think producing INT\_MIN by doing 1 << 31 is UB, so i thought of doing \~INT\_MAX, but i am not sure if it's UB. sorry if it's dumb. — 0 Share Copy proxy link Copy original link