What if we do,
x = INT_MIN - 1;
cout<<x<<endl;
What if we do,
x = INT_MIN - 1;
cout<<x<<endl;
Will it not be INT_MAX???
@Shivam01
Yes it will be INT_MAX in this case, but my answer was to address the general query of integer overflow.
And also in some cases, these cases are dependent on the compiler as well.