O'Reilly logo

Programming in C: A Practical Approach, First Edition by Ajay Mittal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

2

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, assignment and miscellaneous operators

  • Rules for evaluation of arithmetic expressions

  • Implicit and explicit-type conversions

  • Promotions and demotions

  • Conditional, comma, sizeof and address-of operator

  • Combined precedence of all operators

2.1 Introduction

In Chapter 1, you have learnt about identifiers (i.e. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required