I can not understand what is the difference between the logical or from excluding or?
Answer 1, Authority 100%
In general, this can be described by the following truth tables:
Tatac of truth for logical or:
a
kbd>b
kbd>a or b
kbd>
0
kbd>0
kbd>& nbsp; & nbsp; 0 & nbsp; & nbsp; & nbsp;
kbd>
0
kbd>1
kbd>& nbsp; & nbsp; 1 & nbsp; & nbsp; & nbsp;
kbd>
1
kbd>0
kbd>& nbsp; & nbsp; 1 & nbsp; & nbsp; & nbsp;
kbd>
1
kbd>1
kbd>& nbsp; & nbsp; 1 & nbsp; & nbsp; & nbsp;
kbd>
Trial Table for excluding or:
a
kbd>b
kbd>a xor b
kbd>
0
kbd>0
kbd>& nbsp; & nbsp; & nbsp; 0 & nbsp; & nbsp; & nbsp ;
kbd>
0
kbd> kbd>
& nbsp; & nbsp; 1 & nbsp; & nbsp; & nbsp ;
kbd>
1
kbd>0
kbd>& nbsp; & nbsp; & nbsp; 1 & nbsp; & nbsp; & nbsp ;
kbd>
1
kbd> kbd>
& nbsp; & nbsp; 0 & nbsp; & nbsp; & nbsp ;
kbd>
If you explain on your fingers, then the logical or will be true when at least one of the operands is truth. Excluding or will be true if the operands are not equal, and a lie, if the operands are equal.
Answer 2, Authority 17%
Easy Remember: XOR gives zero when there is no alternative (0-0, 1-1)