CONDITIONAL STRUCTURES Lecture 1.8
Prepared by: Mian Saeed Akbar
REF:
CONDITIONAL STRUCTURES
if structure
 Make decision based on truth or falsity of condition
 If condition met, body executed
 Else, body not executed
Equality and relational operators
 Equality operators
 Same level of precedence
 Relational operators
 Same level of precedence
 Associate left to right
Ternary Operator
Condition ? statement1 : statement2 ;
Thank you
Please subscribe my channel for more videos
and courses

Lecture 1.8 Conditional Structures.pdf

  • 1.
    CONDITIONAL STRUCTURES Lecture1.8 Prepared by: Mian Saeed Akbar REF:
  • 2.
    CONDITIONAL STRUCTURES if structure Make decision based on truth or falsity of condition  If condition met, body executed  Else, body not executed Equality and relational operators  Equality operators  Same level of precedence  Relational operators  Same level of precedence  Associate left to right Ternary Operator Condition ? statement1 : statement2 ;
  • 3.
    Thank you Please subscribemy channel for more videos and courses