This is a really simple question, but I'm afraid it's a bit tricky.
Which of the following symbols has the highest precedence? (C++)
a. %
b. -
c. ||
d. &&
I know it sounds easy, but I'm really wondering if whether the answer is % or -. The symbol - can be seen as either a unary minus (which is higher than %) or subtraction (which is lower than %).
What do you think?