UNIT-3 CONTROL STRUCTURE IN
C
1
, Decision Making or Conditional
Statement
▪ C program statements are executed sequentially.
▪ Decision Making statements are used to control the flow of
program.
▪ It allows us to control whether a program segment is executed or
not.
▪ It evaluates condition or logical expression first and based on its
result (either true or false), the control is transferred to particular
statement.
▪ If result is true then it takes one path else it takes another path.
C
1
, Decision Making or Conditional
Statement
▪ C program statements are executed sequentially.
▪ Decision Making statements are used to control the flow of
program.
▪ It allows us to control whether a program segment is executed or
not.
▪ It evaluates condition or logical expression first and based on its
result (either true or false), the control is transferred to particular
statement.
▪ If result is true then it takes one path else it takes another path.