I am going to a computer science contest tomorrow and would appreciate some help on a few problems that I can not figure out. Any explanations would be truly appreciated. (C++ is the language used)
1) What is the result of the following expression:
1 + 2 , 3 * 4 , 5 / 6 , 7 - 8
A. 3
B. 0
C. -1
D. 12
E. 14
2) What is the result of the following expression:
4 << 3 << 2 << 1
A. 256
B. 4000000
C. 512
D. 1000000000
E. undefined
Also, could someone please explain these operators?
| & ^
Thanks in advance for your help!