Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
operator^ (pronounced as 'bitwise xor operator') is an operator to perform a xor and subsequently assign the result.
In the example below a '0011' is performed xor on with '0101' yielding '0110', which equals the decimal value of 6.
#include <cassert> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.