+ 8
What is maximum and minimum value that an "int" can store?
2 Answers
+ 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
+ 9
Thank's !