xref: /original-bsd/share/man/man7/operator.7 (revision 6884d44a)
1.\" Copyright (c) 1989, 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\"     @(#)operator.7	5.3 (Berkeley) 08/31/90
7.\"
8.Dd
9.Dt OPERATOR 7
10.Os BSD 4.4
11.Sh NAME
12.Nm operator
13.Nd C operator precedence and order of evaluation
14.Sh DESCRIPTION
15.Ds I
16.Cw xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
17.Cl Operator	Associativity
18.Cl --------	-------------
19.Cl \&() [] -> .	left to right
20.Cl \&! ~ ++ -- - (type) * & sizeof	right to left
21.Cl \&* / %	left to right
22.Cl \&+ -	left to right
23.Cl \&<< >>	left to right
24.Cl \&< <= > >=	left to right
25.Cl \&== !=	left to right
26.Cl \&&	left to right
27.Cl \&^	left to right
28.Cl \&|	left to right
29.Cl \&&&	left to right
30.Cl \&||	left to right
31.Cl \&?:	right to left
32.Cl \&= += -= etc.	right to left
33.Cl \&,	left to right
34.Cw
35.De
36.Sh FILES
37.Dw /usr/share/misc/operator
38.Di L
39.Dp Pa /usr/share/misc/operator
40.Dp
41.Sh HISTORY
424.4 BSD.
43