C Programming Reference


C Programming Reference >> C Basic Tutorials >> C Keywords Home >>

ifui

30/12/06 -  Views - Ratings :   3.48 of 5 / 155 Votes

If is one the most frequnetly used keyword . It is used for condtion checking. It can also accompany an else block which is executed when if condition fails. Else block is optional.

Code -
void function (void)
{
int a,b;
scanf ("%d %d", &a, &b);
if (a==b) printf ("A equals to B");
else printf ("A not equals to B");   
}

Back To Top


      

 

 

© 2006 cencyclopedia.com