News:

Build a stunning handcrafted website with IT Acumens

Main Menu

Else IF ladder in C

Started by thiruvasagamani, Sep 22, 2008, 10:54 AM

Previous topic - Next topic

thiruvasagamani


Syntax:
if(condition1)
{
stmt 1;
stmt 2;
stmt 3;
}
else
if(condition2)
{
stmt 4;
stmt 5;
stmt 6;
}
else
if (condition3)
{
stmt 7;
stmt 8;
stmt 9;
}
else
{
stmt 10;
stmt 11;
stmt 12;
}
stmt 13;

Else if ladder execution steps:

NOTE:
When particular condition is true remaining condition are not tested due to else. else.
Thiruvasakamani Karnan