#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;
}
Code Example |
---|
Cpp :: c++ capture screen as pixel array |
Cpp :: c #define |
Cpp :: find element in vector |
Cpp :: classes constructor in c++ |
Cpp :: letter occurrence in string c++ |
Cpp :: Converting to string c++ |
Cpp :: pure virtual function in c++ |
Cpp :: c++ looping through a vector |
Cpp :: Max element in an array with the index in c++ |
Cpp :: print counting in c++ |
Cpp :: getline |
Cpp :: c++ header boilerplate |
Cpp :: c++ program to generate all the prime numbers between 1 and n |
Cpp :: c++ for loop multiple variables |
Cpp :: how to create 2d array using vector in c++ |
Cpp :: swap in cpp |
Cpp :: long pi in c++ |
Cpp :: sum array c++ |
Cpp :: variables in c++ |
Cpp :: how to sort array in c++ |
Cpp :: c++ fonksion pointer |
Cpp :: reference c++ |
Cpp :: print fps sfml |
Cpp :: cmd color text c++ |
Cpp :: potato |
Cpp :: how to create an integer in c++ |
Cpp :: assignment operator with pointers c++ |
Cpp :: loops in c and c ++ |
Cpp :: c++ string to char* |
Cpp :: c++ length of int |