MCQOPTIONS
Saved Bookmarks
| 1. |
Consider the following program fragment, and choose the correct onevoid main(){ int a, b = 2, c; a = 2 * (b++); c = 2 * (++b);} |
| A. | a = 4, c = 8 |
| B. | a = 3, c = 8 |
| C. | b = 3, c = 6 |
| D. | a = 4, c = 6 |
| E. | b = 4, c = 6 |
| Answer» B. a = 3, c = 8 | |