mirror of https://github.com/mkerrisk/man-pages
operator.7: Reorder symbols as in the standard (C11)
This makes it easier to compare this page to the standard, to get more details about the rules between operators. Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
9c9a5acaa2
commit
77251857af
|
@ -47,13 +47,13 @@ This manual page lists C operators and their precedence in evaluation.
|
||||||
lb lb lb
|
lb lb lb
|
||||||
l l l.
|
l l l.
|
||||||
Operator Associativity Notes
|
Operator Associativity Notes
|
||||||
() [] \-> . ++ \-\- left to right [1]
|
[] () . \-> ++ \-\- left to right [1]
|
||||||
! \(ti ++ \-\- + \- * & sizeof right to left [2]
|
++ \-\- & * + \- \(ti ! sizeof right to left [2]
|
||||||
(type) right to left
|
(type) right to left
|
||||||
* / % left to right
|
* / % left to right
|
||||||
+ \- left to right
|
+ \- left to right
|
||||||
<< >> left to right
|
<< >> left to right
|
||||||
< <= > >= left to right
|
< > <= >= left to right
|
||||||
== != left to right
|
== != left to right
|
||||||
& left to right
|
& left to right
|
||||||
\(ha left to right
|
\(ha left to right
|
||||||
|
@ -61,7 +61,7 @@ Operator Associativity Notes
|
||||||
&& left to right
|
&& left to right
|
||||||
|| left to right
|
|| left to right
|
||||||
?: right to left
|
?: right to left
|
||||||
= += \-= *= /= %= <<= >>= &= \(ha= |= right to left
|
= *= /= %= += \-= <<= >>= &= \(ha= |= right to left
|
||||||
, left to right
|
, left to right
|
||||||
.TE
|
.TE
|
||||||
.PP
|
.PP
|
||||||
|
|
Loading…
Reference in New Issue