Question: 1 8 . A programmer works with an unknown program language. The language provides four different unsigned integer data types with the following storage abilities:

18. A programmer works with an unknown program language. The language provides four different unsigned integer data types with the following storage abilities:
int1 uses 8 bits
int2 uses 16 bits
int3 uses 24 bits
int4 uses 32 bits
int5 uses 64 bits
An unsigned integer uses every bit in the sequence for storage. There is no bit used to indicate a positive or negative number. The int1 data type has space for 256 unique integers in the [0..255] range. This data type is considered inadequate for the needs of the program. Integers need to store numbers as large as 10,000,000. Which of the following integer data types uses the least memory, but is adequate for the storage requirement?
int5
int2
int 4
Int3
A is the correct answer because

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!