S
santosh
Ioannis said:Then why not provide a 32-bit int and a 64-bit long?
That's what is commonly done on 64 bit systems, Microsoft being an
exception. The point that user923005 made is that when C was created
the type int was meant to map to the machine's natural integer size,
which under most 64 bit systems is of course 64 bits. But if int is
made 64 bits then we have to sacrifice either a 16 bit or 32 bit type,
mostly the former. But a 32 bit short just feels weird! Also if int is
64 bits what is long supposed to be? And what about long long?
That's why I agree with Jacob that even under 64 bit systems int is best
left at 32 bits, and long made 64 bits.