(Order of Evaluation) 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 main work area of a Microsoft Excel file is a ________

A) worksheet B) document C) cell D) spreadsheet

Computer Science & Information Technology

An essential element of fraud is

A) Concealment B) Lying about facts C) Intent D) Misrepresentation of truth

Computer Science & Information Technology