
please wait
unsigned int
is 4,294,967,295. Since there are more people you can use an unsigned long
that holds up to 18,446,744,073,709,551,615.float
uses 4 bytes of memory so it can hold up to a certain decimal number (suppose it's 3.33333). double
uses 8 bytes, so it can store more decimal numbers (suppose 3.3333333333).int
as the default integer type, double
as the default floating point type, char
as the default character type, and std::string
as the default string type.int
, double
, char
or std::string
unsuitable.int
can represent a maximum value of x
, so if you want larger values, use long
' is fundamentally unsound. At best, it provides a non-portable solution.decltype(999999999999) i = 0 ;