Control statements are used to control the flow of execution of a program based on conditions or loops.
Selection Statements
Iteration Statements
Jump Statements
Executes a block of code if the condition is true.
Executes one block if condition is true, otherwise another block.
Used to check multiple conditions.
Used to select one option from multiple choices.
Used when number of iterations is known.
Checks condition before execution.
Executes at least once.
Terminates loop or switch.
Skips current iteration.
Transfers control to labeled statement.
Returns control to calling function.
Control statements manage program flow
Selection statements make decisions
Iteration statements repeat execution
Jump statements alter normal flow
Take quizzes related to this topic and see where you stand!
Start Quiz Now