C Nested If Statements

Last Updated Nov 4, 2015, 07:00:14 PM





Nested if statement allows us to add multiple if or else statements inside one if statement to check for more possibility of the condition
Syntax

Nested if else statment is same like if else statement, where new block of if else statement is defined in existing if or else block statment. Used when user want to check more than one conditions at a time.

Example

Try It Now

Other Decision Making Topics you might want to learn

If Statement in C

If else Statement in C

Switch Statement in C