I have something that I haven't yet wrapped my head around yet; how does the |
operand evaluate numbers?
#include<iostream>
int main()
{
int x, y, z;
x = 2;
y = 4;
z = x | y;
}
Why does z
get assigned 6 in this case; how does this work?