Adding boolean values C++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Adding boolean values C++

I see a lot of challenge questions where you add boolean values, I normally guess 1 or 0 because boolean can only be true or false, but I am always wrong. What is the rule for adding booleans in C++?

18th Mar 2017, 9:04 AM
Ben Lucy
Ben Lucy - avatar
1 Answer
0
you don't add booleans but you can compare them. are you referring to && and || notation?
18th Mar 2017, 6:11 PM
Richard Valles
Richard Valles - avatar