Syntax : If-else Statement in C Programming

January 15, 2012 No Comments » Hits : 250





If Statement :

if(conditional)
{
//True code
}
else
{
//False code
}

Note :

  1. If part Executed if Condition Statement is True.
  2. Else Part executed if Condition Statement is False.
  3. More than One Conditions can be Written inside If statement.
  4. Opening and Closing Braces are required only when “Code” after if statement occupies multiple lines.
  5. Code will be executed if condition statement is True.
  6. Non-Zero Number Inside if  means “TRUE Condition”

Incoming search terms: