How to print bool in C++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to print bool in C++?

5th Jun 2017, 11:05 PM
Hyde
2 Answers
+ 8
cout << "bool"; or bool abool = true; cout << abool; Not sure which one you wanted 😝
5th Jun 2017, 11:11 PM
Rrestoring faith
Rrestoring faith - avatar
+ 4
Thanku..
5th Jun 2017, 11:16 PM
Hyde