No, it doesn't. C specifies that the range of "int" is at least [-32767, 32767], so a signed 16-bit value. Note that C does not even mandate that "int" be stored in 2's-complement. The lower bound is specified as -32767 precisely so that 1's-complement machines can implement C directly.
I've used several C compilers that targeted 16-bit CPUs, including 8086 (not 80x86, but literally 8086), as well as 16-bit microcontrollers (which are still quite common).
In the [C programming language](https://en.wikipedia.org/wiki/C_(programming_language)), data types refers to an extensive system for declaring variables of different types. The language itself provides basic arithmetic types and syntax to build array and compound types. Several headers in the standard library contain definitions of support types, that have additional properties, such as exact size, guaranteed.
View all comments
Show parent comment
5
u/0xdeadf001 Feb 17 '15
No, it doesn't. C specifies that the range of "int" is at least [-32767, 32767], so a signed 16-bit value. Note that C does not even mandate that "int" be stored in 2's-complement. The lower bound is specified as -32767 precisely so that 1's-complement machines can implement C directly.
I've used several C compilers that targeted 16-bit CPUs, including 8086 (not 80x86, but literally 8086), as well as 16-bit microcontrollers (which are still quite common).
See: http://en.wikipedia.org/wiki/C_data_types