Saved Bookmarks
| 1. |
Read the following C++ statement for (int n = 1; n<10; n+=2); cout<<nNow, choose the correct output from the following options. (a) 1 (b) 13579 (c) 11 (d) 10 |
|
Answer» (c) 11. This is because of for statement is end with; (semi colon). Here cout<<n; executes only once. |
|