Skip to Content
C++20 for Programmers: An Objects-Natural Approach, 3rd Edition
book

C++20 for Programmers: An Objects-Natural Approach, 3rd Edition

by Paul Deitel, Harvey Deitel
April 2022
Intermediate to advanced
1012 pages
38h 1m
English
Pearson
Content preview from C++20 for Programmers: An Objects-Natural Approach, 3rd Edition

A. Operator Precedence and Grouping

Operators are shown in decreasing order of precedence from top to bottom.

Operator

Type

Grouping

::

scope resolution

left to right

()

grouping parentheses

 

()

function call

left to right

[]

array subscript

 

.

member selection via object

 

->

member selection via pointer

 

++

unary postfix increment

 

--

unary postfix decrement

 

typeid

runtime type information

 

dynamic_cast<type>

runtime type-checked cast

 

static_cast<type>

compile-time type-checked cast

 

reinterpret_cast<type>

cast for nonstandard conversions

 

const_cast<type>

cast away const-ness

 

++

unary prefix increment

right to left

--

unary prefix decrement

 

+

unary plus

 

-

unary minus

 

!

unary logical ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Designing Data-Intensive Applications, 2nd Edition

Designing Data-Intensive Applications, 2nd Edition

Martin Kleppmann, Chris Riccomini

Publisher Resources

ISBN: 9780136905776