This is an old revision of the document!
Tabelas de precedência dos operadores
Essas tabelas sempre são úteis na hora de programar
C++
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
---|---|---|---|---|---|---|---|
:: | dynamic_cast | ! | delete | - | != | += | <<= |
() | static_cast | ~ | delete[] | << | & and | -= | >>= |
[] | reinterpret_cast | (tipo) | .* | >> | ^ or | *= | , |
. | const_cast | sizeof | ->* | < | | or | /= | |
-> | ++i | & | * | <= | && and | %= | |
i++ | --i | * | / | > | || or | &= | |
i-- | new | % | >= | ? : | ^= | ||
typeid | new[] | + | == | = | |= |