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

[ad_1]

  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?

[ad_2]

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