Оглавление

Приоритет операторов

В выражениях операторы с высшим приоритетом будут выполняться первыми.

Унарные операторы

Унарные операторы имеют более высокий приоритет, чем другие операторы

Доступные унарные операторы.

:: scope resolution operator
[] indexing operator
++ -- post increment and decrement
. member access
++ -- pre increment and decrement
not ! logical not
+ - unary positive and negative
~ bitwise complement
@ handle of

Двойные и тройные операторы

Двойные и тройные операторы в порядке убывания приоритета.

* / % multiply, divide, and modulo
+ - add and subtract
<< >> >>> left shift, right shift, and arithmetic right shift
& bitwise and
^ bitwise xor
| bitwise or
<= < >= > comparison
== != is !is xor ^^ equality, identity, and logical exclusive or
and && logical and
or || logical or
?: condition
= += -= *= /= = &=
|= ^= <<= >>= >>>=
assignment and compound assignments


Перевод - arroy.one@gmail.com. При копировании материалов указывайте ссылку на источник.