C | Loops & Control Structure | Question 18
How many times GeeksQuiz is printed
i = -5;
(i <= 5)
(i >= 0)
(A) 10 times
(B) 5 times
(C) Infinite times
(D) 0 times
Explanation: The loop keeps incrementing i while it is smaller than 0. When i becomes 0, the loop breaks. So GeeksQuiz is not printed at all.
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.