What is the difference when an integer takes 2 bytes and when did it take 4 bytes
Answers
Answered by
0
the integer takes 2 bytes for a 32-bit compiler” - Not always true. In fact, many (but not all) mainstream 32-bit C compilers have an int that occupies 4 or more bytes. But it depends on the compiler implementation. “theinteger…takes 4 bytes for a 64-bit compiler” - Not always true.
here is your answer and follow me.......
here is your answer and follow me.......
Answered by
0
size of int is known by sizeof(int).
The size of an int is really compiler dependent.
if we talk about previous days, when processors were 16 bit, an int was 2 bytes.
Nowadays, it is most often 4 bytes on a 32-bit as well as 64-bit systems.
Similar questions