[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: not enough real programmers? (was Re: Byte Magazine: 18 Vintage issues, 1985-1986)
In comp.arch.embedded Peter Seebach <seebs@plethora.net> wrote:
> The strict ordering is
> sizeof(char) <= sizeof(anything)
> sizeof(short) <= sizeof(int) <= sizeof(long)
> But that's not all! Each type must be able to represent a certain range
> of values. For 'short', that range is +/- 32,767. For 'int', it is also
> +/- 32,767. For 'long', it is +/- 2,147,483,647, and you can't do that
> without 32 bits.
Can you give a reference for this? The number 32767 appears only twice in
the 680 page C++ draft standard, the first is an example, and the second
refers to the pre-processor.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Spehro Pefhany "The Journey is the reward"
speff@interlog.com
Fax:(905) 271-9838 (small micro system devt hw/sw + mfg)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=