It's the operator for assignment by bitwise OR.
http://en.cppreference.com/w/cpp/language/operator_assignment
int result |= 5;
You cannot initialize an int
and assign something to it at the same time. Initialization and assignment are different things. You'd have to write:
int result = 0;
result |= 5;
If this is what you intend, of course. Since int result |= 5;
is not C++, we can only guess about your intention.