In C, the if-else statement is used to carry out operations based on a set of conditions. If and only if the given condition is true, the operations specified in the if block are executed.
If the if (true/false expression) is false, the if/else statement adds an action to the if statement. The program will always execute something with an if/else statement because it will either execute the true code block or the false code block.