EX 2.7. Write four different program statements that increment the value of an integer variable total.

What will be an ideal response?

```
total = total + 1;
total += 1;
total++;
++total;
```

Computer Science & Information Technology

You might also like to view...

Advanced malware management

What will be an ideal response?

Computer Science & Information Technology

Fast Ethernet operates at

a. 4 Mbps b. 10 Mbps c. 16 Mbps d. 100 Mbps

Computer Science & Information Technology