Practical C Programming, 3rd Edition

I l @ ve RuBoard

Table C-1. Standard C++ precedence rules

Precedence

Operators

1

( )

[ ]

->

.

 
 

::

::*

->*

.*

 

2

!

~

++

--

(type)

 

- (unary)

* (dereference)

     
 

& (address of)

sizeof

     

3

* (multiply)

/

%

   

4

+

-

     

5

<<

>>

     

6

<

<=

>

>=

 

7

==

!=

     

8

& (bitwise AND)

       

9

^

       

10

       

11

&&

       

12

       

13

?:

       

14

=

+=

-=

etc.

 

15

,

       
I l @ ve RuBoard

Категории