9-Decision Making in C (If, If..else, Nested If, If-Else-If)
9-Decision Making in C (If, If..else, Nested If, If-Else-If)
The conditional statements (also known as decision control structures) such as if, if else, switch, etc. are used for
decision-making purposes in C programs.
They are also known as Decision-Making Statements and are used to evaluate one or more conditions and make
the decision whether to execute a set of statements or not. These decision-making statements in programming
languages decide the direction of the flow of program execution.
1. if Statement
2. if-else Statement
3. Nested if Statement
4. if-else-if Ladder
5. switch Statement
6. Conditional Operator
7. Jump Statements:
break
continue
goto
return
1. if in C