• admin@embedclogic.com

Control Flow In C

Control flow as the name explains itself to control the flow of statements execution. Sometimes a programmer needs to execute some functionality on a specific condition.

Statement execution Control as per condition

Methods of flow control

To fulfil this need to control the execution of statements, C Language provides some concepts divided into the following category-

if -else statements: Execute some statements only one time upon getting some condition true.

switch-case statement: Execute some statements only one time upon getting some condition true.

Loops(for,while,do-while) :  Execute some statements until condition get false .

break and continue statement: Break or continue Execution upon getting some condition true.

goto statement: Jump the execution control on some block of statements and returned back.

Click on the respective links for concept detail or follow the next chapter.