Important MCQ

The loops available in C++ are

Q.The loops available in C++ are

A) int, float, char
B) for, while, do-while
C) cin, cout, endl
D) if, else, switch
Correct Answer:
Option B
Detailed Explanation:
B) for, while, do-while is correct. A loop repeats a block of statements. One pass is an iteration; break exits a loop, continue skips the rest of the current iteration, and for/while are entry-controlled.