How the size of int is decided?
Is it true that the size of int will depend on the processor. For 32-bit machine, it will be 32 bits and for 16-bit it\'s 16.
The size of integer is basically depends upon the architecture
of your system.
Generally if you have a 16-bit
machine then your compiler
will must support a int of size 2 byte.
If your system is of 32 bit,then the compiler must support for 4 byte for integer.
In more details,
data bus
comes into picture yes,16-bit ,32-bit means nothing but the size of data bus
in your system.x06->16-bit->DOS->turbo c->size of int->2 byte x306->32-bit>windows/Linux->GCC->size of int->4 byte