diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2019-09-22 22:58:45 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2019-09-22 22:58:45 +0200 |
| commit | cc245e5bf8bf94e400238b6ed81c6d4d335c4996 (patch) | |
| tree | 4c831bfaf90a3eaa3052b794c0b3ea167b1c805e /man7/operator.7 | |
| parent | e5f5563cba4a71e11274ec80012b5981c2ec3360 (diff) | |
| download | man-pages-cc245e5bf8bf94e400238b6ed81c6d4d335c4996.tar.gz | |
operator.7: Prefix and postfix ++/-- have different precedences
Harbison and Steele also agree on this.
Reported-by: Rick Stanley <rstanley@rsiny.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7/operator.7')
| -rw-r--r-- | man7/operator.7 | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/man7/operator.7 b/man7/operator.7 index a5dd3264ef..f22dc5d17a 100644 --- a/man7/operator.7 +++ b/man7/operator.7 @@ -44,11 +44,11 @@ operator \- C operator precedence and order of evaluation This manual page lists C operators and their precedence in evaluation. .PP .TS -lb lb -l l. -Operator Associativity -() [] \-> . left to right -! ~ ++ \-\- + \- (type) * & sizeof right to left +lb lb lb +l l l. +Operator Associativity Notes +() [] \-> . ++ \-\- left to right [1] +! ~ ++ \-\- + \- (type) * & sizeof right to left [2] * / % left to right + \- left to right << >> left to right @@ -63,3 +63,14 @@ Operator Associativity = += \-= *= /= %= <<= >>= &= ^= |= right to left , left to right .TE +.PP +The following notes provide further information to the above table: +.PP +.PD 0 +.IP [1] 4 +The ++ and \-\- operators at this precedence level are +the postfix flavors of the operators. +.IP [2] +The ++ and \-\- operators at this precedence level are +the prefix flavors of the operators. +.PD |
