ExamVeda
Login
Home
This question belongs to C Program Control Structures
Control Structures
?

Which command is used to skip the rest of a loop and carry on from the top of the loop again?

Answer & Solution
Correct Answer: Option C
Syntax: continue ;

Causes control to pass to the end of the innermost enclosing while, do, or for statement, at that point the loop continuation condition is re-evaluated. Example:
for(i = 0; i < 20; i++){
   if(array[i] == 0)
      continue;
   array[i] = 1/array[i];
}
Examveda
Question posted by Examveda
Community

Join the Discussion

1 Comment
Shubham Sharma
Shubham Sharma 11 years ago
yes the ans. is continue
because,continue is go directly to the statement from where loop is started.