need help desperately!
How do I evaluate the following logical expressions the way a C++ program would evaluate them?
(a) 3>6<=9&&21==(11+10)
(b) 9==9&&(1<1||25>=50)
(c) x>4&&x <=7 (evaluate for x=3,5,and 8) (d) 4
A. (3>6<9=9) && (21==(11+10) (first expression) and (second expression) B. (9==9) && ((1<1) || (25>=50)) (first expression) and (second expression) or (third expression) C. (x>4) && (x<=7) (first expression) and (second expression) I believe it should be something like this but dont quote me
Hint: Use the table below: http://en.cppreference.com/w/cpp/language/operator_precedence and note the order of operations left-to-right or right-to-left.
Join our real-time social learning platform and learn together with your friends!