Introduction
Conditional Control Structure allow us to make decision based on certain conditions in our program. In simple terms, they help us to execute different blocks based on whether a condition is false or true.
Why we used Conditional Control Structure ???
Conditional Control Structure are basically used to make decisions in our program. Just take an example we have a Apple. Then we write two conditions on it, Like “Condition 1” is for if I eat apple then it will finish. and “Condition 2” is for If I not it eat then it will remain same. Like I set the things on eating apple then it will show the output of “Condition 1”.
Like this real world Example We also set these conditions logic in our system programming or creating software things.
C Language Notes pdf
Types of Conditional Control Structure
In Conditional Control Structure we have a mainly Four types of Statement which are helpful to creating a Decision in our programs.
- If Statement
- If-else Statement
- Nested If-else Statement
- Switch Case Statement