]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man7/operator.7
Many pages: Use correct letter case in page titles (TH)
[thirdparty/man-pages.git] / man7 / operator.7
1 .\" Copyright (c) 1989, 1990, 1993
2 .\" The Regents of the University of California. All rights reserved.
3 .\"
4 .\" SPDX-License-Identifier: BSD-3-Clause
5 .\"
6 .\" @(#)operator.7 8.1 (Berkeley) 6/9/93
7 .\"
8 .\" Copied shamelessly from FreeBSD with minor changes. 2003-05-21
9 .\" Brian M. Carlson <sandals@crustytoothpaste.ath.cx>
10 .\"
11 .\" Restored automatic formatting from FreeBSD. 2003-08-24
12 .\" Martin Schulze <joey@infodrom.org>
13 .\"
14 .\" 2007-12-08, mtk, Converted from mdoc to man macros
15 .\"
16 .TH operator 7 (date) "Linux man-pages (unreleased)"
17 .SH NAME
18 operator \- C operator precedence and order of evaluation
19 .SH DESCRIPTION
20 This manual page lists C operators and their precedence in evaluation.
21 .PP
22 .TS
23 lb lb lb
24 l l l.
25 Operator Associativity Notes
26 [] () . \-> ++ \-\- left to right [1]
27 ++ \-\- & * + \- \(ti ! sizeof right to left [2]
28 (type) right to left
29 * / % left to right
30 + \- left to right
31 << >> left to right
32 < > <= >= left to right
33 == != left to right
34 & left to right
35 \(ha left to right
36 | left to right
37 && left to right
38 || left to right
39 ?: right to left
40 = *= /= %= += \-= <<= >>= &= \(ha= |= right to left
41 , left to right
42 .TE
43 .PP
44 The following notes provide further information to the above table:
45 .PP
46 .PD 0
47 .IP [1] 4
48 The ++ and \-\- operators at this precedence level are
49 the postfix flavors of the operators.
50 .IP [2]
51 The ++ and \-\- operators at this precedence level are
52 the prefix flavors of the operators.
53 .PD