[Ilugc] Size of int
- From: sridharinfinity@xxxxxxxxx (Sridhar R)
- Date: Thu Aug 5 11:23:29 2004
Tom Jose Tharayil <tom@xxxxxxxxxxxx> wrote:
It is also advisable to know that size of a byte is not necessarily 8
sridhar please elaborate on this one......
I am not sure I understood this....
From wikipedia ..
A contiguous sequence of a *fixed* number of bits. On modern
computers, an eight-bit byte or octet is by far the most common.
Certain older models have used six-, seven-, or nine-bit bytes -- for
instance on the 36-bit architecture of the PDP-10. Another example of
a non eight-bit sequence is the 12-bit slab of the NCR-315. A byte is
always atomic on the system, meaning that it is the smallest
addressable unit. An eight-bit byte can hold 256 possible values (28 =
256) -- enough to store an unsigned integer ranging from 0 to 255, a
signed integer from -128 to 127, or a character of a seven-bit (such
as ASCII) or eight-bit character encoding.
Sridhar - http://www.cs.annauniv.edu/~rsridhar
Other related posts: