
please wait
|
|
int
is -32767
to 32767
, but almost every platform today uses 2's complement 32-bit ints, which are -2,147,483,648 to 2,147,483,647. There are no limits to how large it can be.std::numeric_size<int>::max();
Anyways it wont give you an error but more than likely a warning. You can just use a long if you want larger than a short however. ( most times long is the default for int so maybe a long long? ).
short int
or just short
.