Computer Science
Define the following with the help of truth table:
Bitwise XOR
Java Operators
3 Likes
Answer
This operator result is low (0) for the same values of the operands. The outcome is high (1) for different values.
Truth Table
a | b | a ^ b |
---|---|---|
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
Answered By
1 Like
Related Questions
If m = 5, n =2; what will be the output of m and n after execution?
(a) m -= n
(b) n = m + m/n;
Define the following with the help of truth table:
Bitwise NOT
Define the following with the help of truth table:
Bitwise OR
What will be the output when the following statements are executed?
int v,s,n=550; s = n + v > 1750? 400:200;
When,
(a) v = 500
(b) v = 1500