+ 1
What is the difference between exclusive OR and regular OR?
Please help me out
4 ответов
+ 3
A Or B is actually ((A XOR B(exclusive or)) XOR (A AND B))
So if A and B is true
OR gives true
XOR gives false
+ 3
- OR: A OR B its true if A or B (or either) is true else its false (this is simple 😁)
- XOR: A XOR B its true if ONLY one of A and B its true else its false
In practice OR is used for detect if ANY true is present while XOR is used for test if two params are different
+ 1
If A and B are inputs then :
and Y is the output.
then:
Regular OR: this logic is True if at least one of the inputs is true.
A is true.
or
B is true.
or A and B are both true.
then Y will be true.
Exclusive OR:
the logic is True if only one input is true.
A is true.
or
b is true.
but but cannot be true.
0
Guys help me out