

MCQOPTIONS
Saved Bookmarks
1. |
Point out the error, if any in the while loop._x000D_ #include_x000D_ int main()_x000D_ {_x000D_ int i=1;_x000D_ while()_x000D_ {_x000D_ printf("%d\n", i++);_x000D_ if(i>10)_x000D_ break;_x000D_ }_x000D_ return 0;_x000D_ } |
A. | There should be a condition in the while loop |
B. | There should be at least a semicolon in the while |
C. | The while loop should be replaced with for loop. |
D. | No error |
Answer» B. There should be at least a semicolon in the while | |