+ 1
What is range of int?
from - to +.
4 Answers
+ 8
Extending @ThreeG's answer, those values also correspond to ±(2^31 - 1).
+ 3
from -2147483648 to 2147483647
+ 2
It depends on what machine you are on!
You are guaranteed a range from -32767 to 32767 from the C++ standard, but on most modern computers you'll get what ThreeG posted.
you can
#include <limits>
std::cout << std::numeric_limits<int>::min();
std::cout << std::numeric_limits<int>::max();
to check.
0
thanks