This is related to following question,
How to Declare a 32-bit Integer in C
Several people mentioned int is always 32-bit on most platforms. I am curious if
If you are also interested in the actual Max/Min Value instead of the number of bits, limits.h contains pretty much everything you want to know.
At this moment in time, most desktop and server platforms use 32-bit integers, and even many embedded platforms (think handheld ARM or x86) use 32-bit int
s. To get to a 16-bit int
you have to get very small indeed: think "Berkeley mote" or some of the smaller Atmel Atmega chips. But they are out there.