Software Tutorials


Yes, that is right. 1 + 1 = 1. This is not a typo. It is really true that 1 + 1 does equal 1. Here is the catch. In boolean algebra, there is an 1 and an 0. 1 is true and 0 is false. The + is the or operator, so, we get 1 or 1 = 1.

We can write this as true + true = true.

Also, true || true = true.

Code Download
CPPW32T11.zip