The idea of programming might sound like a frightening task, but don’t worry. We designed this blog so that you can get your feet wet without stepping into the deeper complexities of the programming.
This Blog is dedicated to all those people who want to learn the most basic but important Programming Language'C Programming'.
If done step wise C language is easy and fun to learn.
So lets get started.
Start reading from the First Post to understand C programming.You may read a desired topic from the labels.
Press Ctrl+D to add this page to your Favourites/Bookmarks for further reference.
Note:Your comments,queries and suggestions are welcome.Feel free to post them in the the comment boxes available after every post.

Search C Programs,Compilers,etc.

Friday, August 22, 2008

Forms of IF statement

Forms of IF Statement:

The if statement can take any of the given forms:

(1) if ( condition )

do this ;

(2) if ( condition )

{

do this ;

and this ;

}

(3) if ( condition )

do this ;

else

do this ;

(4) if ( condition )

{

do this ;

and this ;

}

else

{

do this ;

and this ;

}

(5) if ( condition )

do this ;

else

{

if ( condition )

do this ;

else

{

do this ;

and this ;

}

}

(6) if ( condition )

{

if ( condition )

do this ;

else

{

do this ;

and this ;

}

}

else

do this ;