Whats INT_max , is it 32767 or long long int?


#1

Comment body goes here.


#2

2147483647 if number exceeds this value it should be overflow .


#3

Consider integer as 32 bit and then check what maximum and minimum value can 32bit integer hold


#4

A : "-54332872018247709407 4 54"

Your function returned the following :

-2147483647

The expected returned value :

-2147483648

then why its showing 2147483648 as int_min value.
its showing different values for different test cases.