About Lesson
Selection Statement/Conditional Statements/Decision Making Statements
A selection statement selects among a set of statements depending on the value of a controlling expression.
Or
Moving execution control from one place/line to another line based on condition
Or
Conditional statements control the sequence of statement execution, depending on the value of a integer expression
C‟ language supports two conditional statements.
1: if
2: switch
1: if Statement: The if Statement may be implemented in different forms.
1: simple if statement.
2: if –else statement
3: nested if-else statement.
4: else if ladder.