Computer Science, asked by alib6911, 1 year ago

How integer range gets stored in memory if it is out of rrange?

Answers

Answered by Abhijeet007
0

C has family of integer types i.e {short, int, long, long long}. Any new programmer is likely to use int to represent integer variable in the application and since int type has 32 bit space with range (-2,147,483,648 to 2,147,483,647), there will be bug as soon value of the variable goes out of the range. As you can see the maximum value is 2,147,483,647 which IMHO very small (cannot even count Earth's population)

Similar questions