Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to calculate bitwise xor c++

#include <iostream>

int main() {
    int a = 12, b = 25;

    cout << "a = " << a << endl;
    cout << "b = " << b << endl;
  // Bitwise XOR
    cout << "a ^ b = " << (a ^ b) << endl;

    return 0;
}
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #calculate #bitwise #xor
ADD COMMENT
Topic
Name
1+3 =