Control Statements in C
π C
π 28 views
π
Dec 22, 2025
β± Estimated reading time: 1 min
Control statements are used to control the flow of execution of a program based on conditions or loops.
Types of Control Statements
-
Selection Statements
-
Iteration Statements
-
Jump Statements
1. Selection Statements
a) if Statement
Executes a block of code if the condition is true.
b) ifβelse Statement
Executes one block if condition is true, otherwise another block.
c) elseβif Ladder
Used to check multiple conditions.
d) switch Statement
Used to select one option from multiple choices.
2. Iteration Statements (Loops)
a) for Loop
Used when number of iterations is known.
b) while Loop
Checks condition before execution.
c) doβwhile Loop
Executes at least once.
3. Jump Statements
a) break
Terminates loop or switch.
b) continue
Skips current iteration.
c) goto
Transfers control to labeled statement.
d) return
Returns control to calling function.
Summary
-
Control statements manage program flow
-
Selection statements make decisions
-
Iteration statements repeat execution
-
Jump statements alter normal flow
π Some advanced sections are available for Registered Members
Register Now
Register Now
Share this Post
β Back to Tutorials