Selection: ‘if’ construct
Syntax: if (expression)
statement ;
expression is the condition for the ‘if’ construct.
If expression is evaluated to non-zero (true), statement is executed.
If expression is evaluated to zero (false), statement is skipped.
Previous slide
Next slide
Back to first slide
View graphic version