Which of the following statements in 'C' forces the next iteration of the loop to take place, skipping any code in between?

Which of the following statements in 'C' forces the next iteration of the loop to take place, skipping any code in between? Correct Answer continue

The correct answer is option 3.

Concept​:

The continue statement in C programming works somewhat like the break statement. Instead of forcing termination, it forces the next iteration of the loop to take place, skipping any code in between.

The conditional test and increment components of the for loop are executed when the continue statement is used. The continued statement causes the program control to pass the conditional tests in the while and do...while loops.

Syntax:

continue;

Hence the correct answer is continue.

Additional Information C switch Statement: 

The switch statement allows us to execute one code block among many alternatives. You can do the same thing with the if...else...if ladder. However, the syntax of the switch statement is much easier to read and write.

Syntax of a switch...case:
switch (expression)
​{
    case constant1:
      // statements 1
      break;

    case constant2:
      // statements 2
      break;
    .
    .
    .
    default:
      // default statements
}

break statement:

The break is a keyword in C that is used to bring the program control out of the loop. The break statement is used inside loops or switch statements. The break statement breaks the loop one by one, i.e., in the case of nested loops, it breaks the inner loop first and then proceeds to outer loops.

Syntax:

case break;

Related Questions

Each of the questions below consists of a question and three statements numbered I, II and III given below it. You have to decide whether the data provided in the statements are sufficient to answer the question. Read all the three statements and give answer. There are six letters E, I, P, G, N and O is PIGEON the word formed after performing the following operations using these six letters only? I. O is placed fourth to the right of P. G is not placed immediately next to either P or O. II. N is placed immediately next (either left or right) to O. E is placed immediately next (either left or right) to G. III. Both I and E are placed immediately next to G. The word does not begin with N. P is not placed immediately next to E.