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