It is guaranteed that a ____ has at least 8 bits and a ____ has at least 16 bits.

It is guaranteed that a ____ has at least 8 bits and a ____ has at least 16 bits.
A. int, float
B. char, int
C. bool, char
D. char, short
 
Answer: d
Explanation: char types in C++ require atleast 8 bits and short requires atleast 16 bits, whereas for bool only 1 bit suffices and both int and float requires atleast 32 bits.
 

Tìm kiếm

Back
Top