[Ilugc] Size of int
Sridhar R
sridharinfinity at gmail.com
Thu Aug 5 11:23:17 IST 2004
Tom Jose Tharayil <tom at tharayil.com> wrote:
>
> > It is also advisable to know that size of a byte is not necessarily 8
> > bits.
> >
> >
>
> what ???????
>
> sridhar please elaborate on this one......
>
> I am not sure I understood this....
>From wikipedia ..
<wiki>
Byte:
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.
</wiki>
More on
http://en.wikipedia.org/wiki/Byte
--
Sridhar - http://www.cs.annauniv.edu/~rsridhar
Blog: http://www.livejournal.com/users/sridharinfinity
More information about the ilugc
mailing list