1 .\" Copyright (c) 1989, 1990, 1993
2 .\" The Regents of the University of California. All rights reserved.
4 .\" SPDX-License-Identifier: BSD-3-Clause
6 .\" @(#)operator.7 8.1 (Berkeley) 6/9/93
8 .\" Copied shamelessly from FreeBSD with minor changes. 2003-05-21
9 .\" Brian M. Carlson <sandals@crustytoothpaste.ath.cx>
11 .\" Restored automatic formatting from FreeBSD. 2003-08-24
12 .\" Martin Schulze <joey@infodrom.org>
14 .\" 2007-12-08, mtk, Converted from mdoc to man macros
16 .TH OPERATOR 7 2020-08-13 "Linux man-pages (unreleased)" "Linux Programmer's Manual"
18 operator \- C operator precedence and order of evaluation
20 This manual page lists C operators and their precedence in evaluation.
25 Operator Associativity Notes
26 [] () . \-> ++ \-\- left to right [1]
27 ++ \-\- & * + \- \(ti ! sizeof right to left [2]
32 < > <= >= left to right
40 = *= /= %= += \-= <<= >>= &= \(ha= |= right to left
44 The following notes provide further information to the above table:
48 The ++ and \-\- operators at this precedence level are
49 the postfix flavors of the operators.
51 The ++ and \-\- operators at this precedence level are
52 the prefix flavors of the operators.