In c++ the '|' character stands for bitwise inclusive or operator. Its operands can be integral or enumeration types (the usual arithmetic conversions are applied). For example 3 | 5 = 7
To get the result convert the operands to binary form and OR each bit individually:
011
101
----
111
Here is C++ code to demonstrate this:
Code:
#include<iostream>
int main() {
std::cout << (3|5) << std::endl;
return 0;
}