Apr 13, 2006 #1 chopstick Programmer Joined Apr 9, 2006 Messages 8 Location SG is the int size determined by the CPU or the compiler itself?
Apr 13, 2006 #2 xwb Programmer Joined Jul 11, 2002 Messages 6,828 Location GB Compiler Upvote 0 Downvote
Apr 13, 2006 1 #3 Salem Programmer Joined Apr 29, 2003 Messages 2,455 Location GB The CPU has a natural size for a 'word', which is usually the same size as the registers. The compiler writer usually chooses this size to represent an int. The ANSI-C standard states that an int should have a minimum range of -32768 to 32767. -- Upvote 0 Downvote
The CPU has a natural size for a 'word', which is usually the same size as the registers. The compiler writer usually chooses this size to represent an int. The ANSI-C standard states that an int should have a minimum range of -32768 to 32767. --