1.

Which type is best suited to represent the logical values?(a) integer(b) boolean(c) character(d) floatThis question was addressed to me by my school teacher while I was bunking the class.My query is from Types in chapter Types, Pointers, Arrays & Structures in C++ of C++

Answer» CORRECT ANSWER is (b) boolean

The best EXPLANATION: LOGICAL values can be either true or false, so the boolean TYPE is suited for it.


Discussion

No Comment Found

Related InterviewSolutions