Evaluate the expression

I don't understand this:
evaluate the following expressions:
a=18 % 16 | 5 & 8;
b=18 | 16 % 5 | 8;
c=18 & 16 % 5 & 8;
d=18 | 16 | 5 | 8;
Which one gives the value 16.
The %, & and | symbols are operators. Look them up in whatever texts you're using to learn C++ from, and then things will be a bit clearer.
Topic archived. No new replies allowed.