Does size of data type affect its range? Ex:-whats the range of unsigned int if int is of 1 byte?

hmntkadam09
Asked Feb 20, 2011
The range of an unsigned integer is mathematically unlimited but is limited in computer programming. C++ and Visual Basic have three integer types, 32 bit, 16 bit and 8 bit.

One byte (8bit) unsigned has a range of 0 to 256.
Two Bytes (256 * 256) is 65,536
Four Bytes would be 65,536 * 65,536


Rob
Answered Feb 20, 2011
Edited Feb 20, 2011

TIP: If it's not your answer to this question, please click "Leave a Comment" button under the question to communicate with the question owner.

Categories