-
Yes, signed integer overflow has undefined behavior in C.
-
i > INT_MAX
is never true for anyint i
. How can you have anint
greater than the maximum possibleint
?
solved Strange behaviour when intentionally assigning `i` value greater than INT_MAX [duplicate]