Wednesday, August 06, 2008

if, if...else and switch statements in C with samples

if, if...else and switch statements in C with samples: "The if..else statement is a two way branch: it means do one thing or the other. When it is executed, the condition is evaluated and if it has the value `true' (i.e. not zero) then statement1 is executed. If the condition is `false' (or zero) then statement2 is executed. The if..else construction often saves an unnecessary test from having to be made."

0 Comments:

Post a Comment

<< Home