Question:
c++-largest storable integer number.?
?
2012-02-16 09:29:54 UTC
c++-largest storable integer number.?
Three answers:
2012-02-16 09:38:31 UTC
Check the INT_MAX constant. A example:



#include

#include

using namespace std;



int main ()

{

      cout << INT_MAX;

      return 0;

}
carrabotta
2016-12-09 03:31:59 UTC
One byte is 255, 2 bytes is 65535, and so on. you are able to not save a decimal in a protracted, by way of fact a protracted is an integer fee (no decimals). If there is not any data variety large adequate to your use, you will could desire to write your individual multi-precision math workouts.
2012-02-16 09:39:53 UTC
look under fundamental data types under range column (signed)


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...