Question: what is the difference between nested if and else if?
Answer: The block of code following the else statement is executed as the condition present in the if statement is false. A nested if in C is an if statement that is the target of another if statement. Nested if statements means an if statement inside another if statement.