Debian Codegraph @

upstream/debian-unstable/man7/operator.7

raw
1 '\" t
2 .\" Copyright 1989-1993, The Regents of the University of California.
3 .\" Copyright, the authors of the Linux man-pages project
4 .\"
5 .\" SPDX-License-Identifier: BSD-3-Clause
6 .\"
7 .TH operator 7 2025-12-01 "Linux man-pages 6.18"
8 .SH NAME
9 operator \- C operator precedence and order of evaluation
10 .SH DESCRIPTION
11 This manual page lists C operators and their precedence in evaluation.
12 .P
13 .TS
14 lb lb lb
15 l l l.
16 Operator Associativity Notes
17 () _Generic() - [1]
18 [] () . \-> ++ \-\- (type){} left to right [2] [3]
19 T{
20 ++ \-\- & * + \- \[ti] ! _Countof sizeof alignof _Maxof _Minof
21 T} right to left [4]
22 (type) right to left
23 * / % left to right
24 + \- left to right
25 << >> left to right
26 < > <= >= left to right
27 == != left to right
28 & left to right
29 \[ha] left to right
30 | left to right
31 && left to right
32 || left to right
33 ?: right to left
34 = *= /= %= += \-= <<= >>= &= \[ha]= |= right to left
35 , left to right
36 .TE
37 .P
38 The following notes provide further information to the above table:
39 .P
40 .PD 0
41 .IP [1] 5
42 The () at this precedence is the parenthesized expression.
43 .IP [2]
44 The () at this precedence is the function call operator.
45 .IP [3]
46 The ++ and \-\- operators at this precedence level are
47 the postfix flavors of the operators.
48 .IP [4]
49 The ++ and \-\- operators at this precedence level are
50 the prefix flavors of the operators.
51 .PD