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

1 answer

Answer

1243246

2026-04-13 09:41

+ Follow

From inside any loop statement, the continue; statement will skip any remaining statements and re-evaluate the loop's conditional expression. If that expression remains true, a new iteration of the loop begins, otherwise control passes to the statement that follows the loop. Note that in a for or while loop, the conditional expression is defined before the loop body but in a do loop it is defined after the loop body.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.