Chapter 5. Expressions
CONTENTS
Section 5.1 Arithmetic Operators 149
Section 5.2 Relational and Logical Operators 152
Section 5.3 The Bitwise Operators 154
Section 5.4 Assignment Operators 159
Section 5.5 Increment and Decrement Operators 162
Section 5.6 The Arrow Operator 164
Section 5.7 The Conditional Operator 165
Section 5.8 The sizeof
Operator 167
Section 5.9 Comma Operator 168
Section 5.10 >Evaluating Compound Expressions 168
Section 5.11 The new
and delete
Expressions 174
Section 5.12 Type Conversions 178
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 meanings for the operators when applied to class types. ...
Get C++ Primer, Fourth 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.