(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...

Which of the following devices would NOT be considered a communication device and support the transmission of data between devices?

A. modulator-demodulator B. NIC C. Ethernet D. wireless adapter

Computer Science & Information Technology

Which account is the most powerful local user account possible?

A. Guest B. Initial C. Installation D. Administrator

Computer Science & Information Technology

The Increase Decimal and Decrease Decimal buttons change how the ________ decimal values of a cell display

Fill in the blank(s) with correct word

Computer Science & Information Technology

Answer the following statement(s) true (T) or false (F)

1. The simplest connection between a personal computer and a PAC is a serial connection. 2. Any PAC with an RS-232 serial port can communicate with any other RS-232 port. 3. The RS-232 communication standard defines the number of pins and wires that must be used in establishing the connection. 4. A serial connection to a PLC is a direct connection between the personal computer and the controller. 5. Controllers using serial communications typically default to node 01.

Computer Science & Information Technology