+ 8

What is maximum and minimum value that an "int" can store?

18th Nov 2017, 5:07 PM
gabi rete
gabi rete - avatar
2 Réponses
+ 6
if you wonder how to calculate it: max value is (2^32)/2-1 2^32 because int uses 32 bit to store data, /2 because half the range is negativ the other positiv and the -1 because the 0 counts as postiv number which means there is one more positive number than negativ. Minimum range would be -(2^32)/2
18th Nov 2017, 5:48 PM
Jeremy
Jeremy - avatar
+ 9
Thank's !
18th Nov 2017, 5:50 PM
gabi rete
gabi rete - avatar