C | Loops & Control Structure | Question 19
i = 3;
i = 100;
(A) Infinite Loop
(B) 99 99 99
(C) 99 98 97
(D) 2 2 2
Explanation: Note that the i–- in the statement while(i-–) changes the i of main()
And i== just after declaration statement int i=100; changes local i of while loop.
Quiz of this Question
Attention reader! Don’t stop learning now. Get hold of all the important C++ Foundation and STL concepts with the C++ Foundation and STL courses at a student-friendly price and become industry ready.