(Order of Evalution) State the order of evaluation of the operators in each of the following C++ statements and show the value of x after each statement is performed.
a) x = 7 + 3 * 6 / 2 - 1;
b) x = 2 % 2 + 2 * 2 - 2 / 2;
c) x = ( 3 * 9 * ( 3 + ( 9 * 3 / ( 3 ) ) ) );
a) *, /, +, -, =, 15
b) %, *, /, +, -, =, 3
c) innermost parentheses around 3, *, /, +, *, *, 324
Computer Science & Information Technology
You might also like to view...
The nonprinting symbol that displays where a manual line break is inserted is the:
a. short arrow b. bent arrow c. a anchor
Computer Science & Information Technology
A(n) ________ provides legal protection to a written or artistic work, including drawings, poetry, and architecture
Fill in the blank(s) with correct word
Computer Science & Information Technology