c - How many bytes in a 32bit integer? -


This may be a stupid question, but is there only 4 bytes in 32-bit integer?

Sorry, this was not a bytes bits ....

This byte Depends on the definition of

Normally you will define a bit as 8 bits, but this is not just the definition. An alternative definition is that the number of bits in byte depends on the computer's architecture, and in particular Size of the smallest amount of memory from the amount of memory. Now this is almost 8 on modern computer, but there are some systems where a byte is 16 bit using this definition.

See for more information.

Finally, the answer to your question is that 32-bit integers is almost always 4 bytes.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -