Bird
0
0

Which of the following is the correct way to stop a loop immediately in C?

easy📝 Syntax Q3 of 15
C - Loop Control Statements
Which of the following is the correct way to stop a loop immediately in C?
Acontinue;
Bbreak;
Cstop;
Dexit;
Step-by-Step Solution
Solution:
  1. Step 1: Recall loop control keywords in C

    The keyword 'break;' is used to exit a loop immediately.
  2. Step 2: Differentiate from other keywords

    'continue;' skips to the next iteration, 'stop;' is invalid, and 'exit;' terminates the program.
  3. Final Answer:

    break; -> Option B
  4. Quick Check:

    Immediate loop stop = break [OK]
Quick Trick: Use break to exit loops instantly [OK]
Common Mistakes:
  • Using continue to stop loop
  • Using invalid keywords like stop
  • Confusing exit with break

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More C Quizzes