Ask your own question, for FREE!
Computer Science 63 Online
OpenStudy (anonymous):

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

OpenStudy (kva1992):

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

OpenStudy (mathmate):

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.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!