Answer: it depends on the compiler: 2 bytes in 16-bit compilers such as Turbo C, and 4 bytes in modern 32-bit/64-bit compilers such as GCC and Visual C++.
The C standard only says an int must be at least 16 bits (2 bytes); the actual size is chosen by the compiler to suit the machine.
- 2 bytes (16 bits): range −32,768 to 32,767
- 4 bytes (32 bits): range −2,147,483,648 to 2,147,483,647
Textbooks based on Turbo C usually give 2 bytes. To check on your own system, use the sizeof operator:
printf("%d", (int)sizeof(int));