Computer programs are series of instructions written to perform arithmetical and logical operations. Decision-making is one of the striking features of computer programs. Decision-making statements are those statements/instructions which make a decision to execute the block(series of statements) of statements. The decision-making statement results in either true(1) or false(0). If the supplied condition is true, then the block will be executed and if the condition is false then the block will not be executed or a false block will be executed. In C Programming, there are different decision-making statement constructs.
- Simple if statement
- If else statement
- Nested if else statement
- Else if ladder
- Switch statement