C Integers
David Kirkby
david.kirkby@onetel.net
Mon May 6 21:18:00 GMT 2013
On 6 May 2013 12:11, JimJoyce <jim@jimjoyce.co.uk> wrote:
> When Dennis Ritchie invented the C Programming language, he suggested that a
> short int would normally occupy 2 bytes, and a long int would take 4 bytes,
> and no matter what the hardware, a long should always be longer than a
> short. That makes sense.
Are you sure that long a long must be longer than a short?
Is is not sizeof(long) >= sizeof(short) ?
I used a Cray where the size of shorts, ints and longs were all 8 bytes.
Dave
More information about the Gcc-help
mailing list