In C++, bool data type is used to hold how many values?
Show answerHide answer
Correct answer: (B) 2
Explanation
bool holds only two values: true and false.
Correct answer: (B) 2
Explanation
bool holds only two values: true and false.
This is question 85 of DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.