If Statements in C

Decision Making/Control Statements In C Introduction Sometimes, while writing code, programmer has to take decision like, which statements or block of code to be executed and which statements or block of code to be skipped during execution. Such kind of decisions programmer can take using Decision Making Statements in C. for example if user age is above or equal to 18, user will be eligible for voting. if account balance is below minimum, user cannot withdraw money. user having multiple options and one of option has to be executed. and so on.... So, these kind of conditions decides flow of program. Decision Making Statements in C can be divided into following types 1. if statement 2. switch case statement 3. Conditional/Ternary Operator 4. goto Statement. In this Article we will see if Statements in c if Statement in C if statements are divided into following types 1. Simple if 2. if else statement 3. Nested if else statement 4. if else ladder 1. Simple if Statement : Simple...