Evaluate the expression

bogdandafuk (1)
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.
MikeyBoy (175)
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.
Registered users can post here. Sign in or register to post.