Blame man7/operator.7

Packit 7cfc04
.\" Copyright (c) 1989, 1990, 1993
Packit 7cfc04
.\"	The Regents of the University of California.  All rights reserved.
Packit 7cfc04
.\"
Packit 7cfc04
.\" %%%LICENSE_START(BSD_3_CLAUSE_UCB)
Packit 7cfc04
.\" Redistribution and use in source and binary forms, with or without
Packit 7cfc04
.\" modification, are permitted provided that the following conditions
Packit 7cfc04
.\" are met:
Packit 7cfc04
.\" 1. Redistributions of source code must retain the above copyright
Packit 7cfc04
.\"    notice, this list of conditions and the following disclaimer.
Packit 7cfc04
.\" 2. Redistributions in binary form must reproduce the above copyright
Packit 7cfc04
.\"    notice, this list of conditions and the following disclaimer in the
Packit 7cfc04
.\"    documentation and/or other materials provided with the distribution.
Packit 7cfc04
.\" 4. Neither the name of the University nor the names of its contributors
Packit 7cfc04
.\"    may be used to endorse or promote products derived from this software
Packit 7cfc04
.\"    without specific prior written permission.
Packit 7cfc04
.\"
Packit 7cfc04
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
Packit 7cfc04
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Packit 7cfc04
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
Packit 7cfc04
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
Packit 7cfc04
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Packit 7cfc04
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
Packit 7cfc04
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
Packit 7cfc04
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
Packit 7cfc04
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
Packit 7cfc04
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
Packit 7cfc04
.\" SUCH DAMAGE.
Packit 7cfc04
.\" %%%LICENSE_END
Packit 7cfc04
.\"
Packit 7cfc04
.\"	@(#)operator.7	8.1 (Berkeley) 6/9/93
Packit 7cfc04
.\"
Packit 7cfc04
.\" Copied shamelessly from FreeBSD with minor changes. 2003-05-21
Packit 7cfc04
.\"     Brian M. Carlson <sandals@crustytoothpaste.ath.cx>
Packit 7cfc04
.\"
Packit 7cfc04
.\" Restored automatic formatting from FreeBSD.  2003-08-24
Packit 7cfc04
.\"	Martin Schulze <joey@infodrom.org>
Packit 7cfc04
.\"
Packit 7cfc04
.\" 2007-12-08, mtk, Converted from mdoc to man macros
Packit 7cfc04
.\"
Packit 7cfc04
.TH OPERATOR 7 2011-09-09 "Linux" "Linux Programmer's Manual"
Packit 7cfc04
.SH NAME
Packit 7cfc04
operator \- C operator precedence and order of evaluation
Packit 7cfc04
.SH DESCRIPTION
Packit 7cfc04
This manual page lists C operators and their precedence in evaluation.
Packit 7cfc04
.PP
Packit 7cfc04
.TS
Packit 7cfc04
lb lb
Packit 7cfc04
l l.
Packit 7cfc04
Operator	Associativity
Packit 7cfc04
() [] \-> .	left to right
Packit 7cfc04
! ~ ++ \-\- + \- (type) * & sizeof	right to left
Packit 7cfc04
* / %	left to right
Packit 7cfc04
+ \-	left to right
Packit 7cfc04
<< >>	left to right
Packit 7cfc04
< <= > >=	left to right
Packit 7cfc04
== !=	left to right
Packit 7cfc04
&	left to right
Packit 7cfc04
^	left to right
Packit 7cfc04
|	left to right
Packit 7cfc04
&&	left to right
Packit 7cfc04
||	left to right
Packit 7cfc04
?:	right to left
Packit 7cfc04
= += \-= *= /= %= <<= >>= &= ^= |=	right to left
Packit 7cfc04
,	left to right
Packit 7cfc04
.TE
Packit 7cfc04
.SH COLOPHON
Packit 7cfc04
This page is part of release 4.15 of the Linux
Packit 7cfc04
.I man-pages
Packit 7cfc04
project.
Packit 7cfc04
A description of the project,
Packit 7cfc04
information about reporting bugs,
Packit 7cfc04
and the latest version of this page,
Packit 7cfc04
can be found at
Packit 7cfc04
\%https://www.kernel.org/doc/man\-pages/.