This is an old revision of the document!
Table of Contents
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) | .* | >> | ^ xor | *= | , |
. | const_cast | sizeof | ->* | < | | or | /= | |
-> | ++i | & | * | <= | && and | %= | |
i++ | --i | * | / | > | || or | &= | |
i-- | new | % | >= | ? : | ^= | ||
typeid | new[] | + | == | = | |= |
PHP
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
---|---|---|---|---|---|---|---|---|
new | ~ | * | << | == | & | = | %= | and |
[] | - | / | >> | != | ^ | += | &= | xor |
++ | (tipo) | % | < | === | | | -= | |= | or |
-- | @ | + | <= | !== | && | *= | ^= | , |
instanceof | - | > | || | /= | <<= | |||
! | . | >= | ? : | .= | >>= |