
OPERATORS AND
EXPRESSIONS
Learning Objectives
In this chapter, you will learn about:
Operands and operators
Expressions
Simple expressions and compound expressions
How compound expressions are evaluated
Precedence and associativity of operators
How operators are classified
Classification based on number of operands
Unary, binary and ternary operators
Classification based on role of operator
Arithmetic, relational, logical, bitwise, assign-
ment and miscellaneous operators
Rules for evaluation of arithmetic expressions
Implicit and explicit-type conversions
Promotions and demotions
Conditional, comma, sizeof and address-of ...