Bird
0
0

In C, what is the effect of the continue statement when encountered inside a while loop?

easy📝 Conceptual Q1 of 15
C - Loop Control Statements
In C, what is the effect of the continue statement when encountered inside a while loop?
AIt pauses the loop until user input is received
BIt terminates the loop immediately
CIt skips the remaining statements and proceeds with the next iteration of the loop
DIt causes the program to exit
Step-by-Step Solution
Solution:
  1. Step 1: Understand continue behavior

    The continue statement skips the rest of the current loop iteration.
  2. Step 2: Effect in while loop

    When continue is executed, control jumps to the loop's condition check for the next iteration.
  3. Final Answer:

    It skips the remaining statements and proceeds with the next iteration of the loop -> Option C
  4. Quick Check:

    Skips current iteration, continues loop [OK]
Quick Trick: Continue skips to next iteration immediately [OK]
Common Mistakes:
  • Thinking continue exits the loop
  • Confusing continue with break
  • Assuming continue pauses the program

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More C Quizzes