Friday, July 29, 2016

C Basics - Loop Control Statements in C

Loop control statements change execution from its normal sequence. When execution leaves a scope, all automatic objects that were created in that scope are destroyed.

C supports the following control statements.
break statement: Terminates the loop or switch statement and transfers execution to the statement immediately following the loop or switch.

continue statement: Causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating.

goto statement: Transfers control to the labeled statement.

Related topics:
Loops in C   |   The for Loop in C   |   The while Loop in C   |   The do-while Loop in C   |   Nested Loop in C   |   Infinite Loop in C   |   The break Statement in C   |   The continue Statement in C   |   The goto Statement in C   |   The return Statement in C

List of topics: C Programming

No comments:

Post a Comment