Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

about int size? 1

Status
Not open for further replies.

chopstick

Programmer
Apr 9, 2006
8
SG
is the int size determined by the CPU or the compiler itself?
 
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.

--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top