C and C++ Control Statements - if else switch case
C provides the most powerful decision-making control statements. A decision-making control statement allows the user to test one or more conditions. Based on the condition, the program can decide to execute the block of code. The condition can be any relational or logical expression. The condition statement must produce either a true (non-zero or non-null value) value or a false(zero and null value) value.
if else - Flow Chart
Types of Decision Making Control Statement
- if statements
- if..else statements
- Nested if statements
- if else if ladder
- switch statements