O'Reilly logo

Embedded C Programming by Mark Siegesmund

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

Chapter 5

Expressions and Operators

Abstract

This chapter covers in detail the C mathematical, relational, bitwise, assignment, increment, decrement, and some special operators. Details with examples of all the C operators are presented.

The expression makeup of operators and operands is shown, along with the use of binary, unary, and ternary operators. The reader will learn about operator precedence and evaluation direction, right to left and left to right.

Expression types are explained along with type conversion. Both the automatic conversion known as the usual arithmetic conversion and manual conversion known as type casting are explained. A brief introduction to sequence points is also included in this chapter.

Examples and exercises ...

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