]> git.ipfire.org Git - thirdparty/man-pages.git/blame_incremental - man7/operator.7
Many pages: Use \[ti] instead of \(ti
[thirdparty/man-pages.git] / man7 / operator.7
... / ...
CommitLineData
1'\" t
2.\" Copyright (c) 1989, 1990, 1993
3.\" The Regents of the University of California. All rights reserved.
4.\"
5.\" SPDX-License-Identifier: BSD-3-Clause
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.\"
15.\" 2007-12-08, mtk, Converted from mdoc to man macros
16.\"
17.TH operator 7 (date) "Linux man-pages (unreleased)"
18.SH NAME
19operator \- C operator precedence and order of evaluation
20.SH DESCRIPTION
21This manual page lists C operators and their precedence in evaluation.
22.PP
23.TS
24lb lb lb
25l l l.
26Operator Associativity Notes
27[] () . \-> ++ \-\- left to right [1]
28++ \-\- & * + \- \[ti] ! sizeof right to left [2]
29(type) right to left
30* / % left to right
31+ \- left to right
32<< >> left to right
33< > <= >= left to right
34== != left to right
35& left to right
36\(ha left to right
37| left to right
38&& left to right
39|| left to right
40?: right to left
41= *= /= %= += \-= <<= >>= &= \(ha= |= right to left
42, left to right
43.TE
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