What is the difference between a logical OR and an exclusive OR?

I can't understand how logical OR differs from exclusive OR?

Author: Flowneee, 2016-02-20

2 answers

In general, this can be described by the following truth tables:

The truth table for a logical OR:
ABA or B
00  0   
01  1   
10  1   
11  1   

The truth table for the exclusive OR:
ABA xor B
00   0   
01   1   
10   1   
11   0   

If you explain on your fingers, then the logical OR will be true when at least one of the operands is true. The exclusive OR will be true if the operands are not equal, and false if the operands are equal.

 18
Author: Flowneee, 2016-02-20 00:57:49

Easy to remember: XOR gives zero when there is no alternative (0-0, 1-1)

 3
Author: user3195373, 2016-02-20 07:22:31