Reputation:
While reading my textbook Computer systems by Randal E. Bryant & David R. O'Hallaron, I got a question on this:
The C standards set lower bounds on the numeric ranges of the different data types, but there are no upper bounds.
What does this mean?
Upvotes: 1
Views: 89
Reputation: 215330
It means that the C standard for example says that an int
should be at least large enough to hold the value -32767
to 32767
, but it may be larger.
In the real world, 16 bit computers use -32768
to 32767
since they use 2's complement. While 32 bit computers use -2.14 to +2.14 billion.
Upvotes: 4