Advertisement
mjc65

Example 1-51. Using the XOR operator

Jun 23rd, 2020
925
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.14 KB | None | 0 0
  1. bool a = true;
  2. bool b = false;
  3.  
  4. Console.WriteLine(a ^ a); // False
  5. Console.WriteLine(a ^ b); // True
  6. Console.WriteLine(b ^ b); // False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement