In this tutorial, you will learn about if statement (including if...else and nested if..else) in C programming with the help of examples.
In If Else statement, we have one more block, called else block, which executes when the condition is false. So, in C if-else statement, we have an if block followed by else block. If the condition is true, if block is executed, and if the condition is false, else block is executed.