166k views
0 votes
What is the range of a 32-bit unsigned integer?

User Bokeh
by
6.0k points

1 Answer

0 votes

Answer:

0 to 4294967295

Step-by-step explanation:

Unsigned integers have only positive numbers and zero. Their range goes from zero to (2^n)-1.

In the case of a 32-bit unsigned integer this would be.

(2^32) - 1 = 4294967296 - 1 = 4294967295

So the range goes from 0 to 4294967295 or form zero to about 4.3 billion.

The minus one term is because the zero takes one of the values.

User Jksdua
by
6.1k points