1.

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, shortI got this question by my school teacher while I was bunking the class.Query is from Sizes topic in division Types, Pointers, Arrays & Structures in C++ of C++

Answer»

Right choice is (d) char, SHORT

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.



Discussion

No Comment Found

Related InterviewSolutions