Contents

Section 4.1 Fundamentals

Section 4.2 Arithmetic Operators

Section 4.3 Logical and Relational Operators

Section 4.4 Assignment Operators

Section 4.5 Increment and Decrement Operators

Section 4.6 The Member Access Operators

Section 4.7 The Conditional Operator

Section 4.8 The Bitwise Operators

Section 4.9 The sizeof Operator

Section 4.10 Comma Operator

Section 4.11 Type Conversions

Section 4.12 Operator Precedence Table

Chapter Summary

Defined Terms

C++ provides a rich set of operators and defines what these operators do when applied to operands of built-in type. It also allows us to define the meaning of most of the operators when applied to operands of class types. This chapter focuses on the operators as defined in the language and ...

Get C++ Primer, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.