[Solved] Strange behaviour when intentionally assigning `i` value greater than INT_MAX [duplicate]


  1. Yes, signed integer overflow has undefined behavior in C.

  2. i > INT_MAX is never true for any int i. How can you have an int greater than the maximum possible int?

solved Strange behaviour when intentionally assigning `i` value greater than INT_MAX [duplicate]