OSDN Git Service

89cd65099a48f4c860a58dbbc56c9aa6fce8dca8
[linuxjm/LDP_man-pages.git] / draft / man7 / operator.7
1 .\" Copyright (c) 1989, 1990, 1993
2 .\"     The Regents of the University of California.  All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 4. Neither the name of the University nor the names of its contributors
13 .\"    may be used to endorse or promote products derived from this software
14 .\"    without specific prior written permission.
15 .\"
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 .\" SUCH DAMAGE.
27 .\"
28 .\"     @(#)operator.7  8.1 (Berkeley) 6/9/93
29 .\"
30 .\" Copied shamelessly from FreeBSD with minor changes. 2003-05-21
31 .\"     Brian M. Carlson <sandals@crustytoothpaste.ath.cx>
32 .\"
33 .\" Restored automatic formatting from FreeBSD.  2003-08-24
34 .\"     Martin Schulze <joey@infodrom.org>
35 .\"
36 .\" 2007-12-08, mtk, Converted from mdoc to man macros
37 .\"
38 .\" Japanese Version Copyright (c) 2004 Yuichi SATO
39 .\"         all rights reserved.
40 .\" Translated Sat Oct 16 11:38:41 JST 2004
41 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
42 .\"
43 .TH OPERATOR 7 2007-12-08 "Linux" "Linux Programmer's Manual"
44 .\"O .SH NAME
45 .SH Ì¾Á°
46 .\"O C operator \- C operator precedence and order of evaluation
47 C operator \- C ¸À¸ì¤Î±é»»»Ò¤ÎÍ¥Àè½ç°Ì¤Èɾ²Á¤Î½ç½ø
48 .\"O .SH DESCRIPTION
49 .SH ÀâÌÀ
50 .\"O This manual page lists C operators and their precedence in evaluation.
51 ¤³¤Î man ¥Ú¡¼¥¸¤Ç¤Ï C ¸À¸ì¤Î±é»»»Ò¤Èɾ²Á¤ÎÍ¥Àè½ç°Ì¤ò¥ê¥¹¥È¤¹¤ë¡£
52 .nf
53
54 .\"O .B "Operator                             Associativity"
55 .\"O () [] \-> .                           left to right
56 .\"O ! ~ ++ \-\- + \- (type) * & sizeof      right to left
57 .\"O * / %                                left to right
58 .\"O + \-                                  left to right
59 .\"O << >>                                left to right
60 .\"O < <= > >=                            left to right
61 .\"O == !=                                left to right
62 .\"O &                                    left to right
63 .\"O ^                                    left to right
64 .\"O |                                    left to right
65 .\"O &&                                   left to right
66 .\"O ||                                   left to right
67 .\"O ?:                                   right to left
68 .\"O = += \-= *= /= %= <<= >>= &= ^= |=    right to left
69 .\"O ,                                    left to right
70 .B "±é»»»Ò                                ·ë¹ç¤Î½ç½ø"
71 () [] \-> .                           º¸¤«¤é±¦¤Ø
72 ! ~ ++ \-\- + \- (type) * & sizeof      ±¦¤«¤éº¸¤Ø
73 * / %                                º¸¤«¤é±¦¤Ø
74 + \-                                  º¸¤«¤é±¦¤Ø
75 << >>                                º¸¤«¤é±¦¤Ø
76 < <= > >=                            º¸¤«¤é±¦¤Ø
77 == !=                                º¸¤«¤é±¦¤Ø
78 &                                    º¸¤«¤é±¦¤Ø
79 ^                                    º¸¤«¤é±¦¤Ø
80 |                                    º¸¤«¤é±¦¤Ø
81 &&                                   º¸¤«¤é±¦¤Ø
82 ||                                   º¸¤«¤é±¦¤Ø
83 ?:                                   ±¦¤«¤éº¸¤Ø
84 = += \-= *= /= %= <<= >>= &= ^= |=    ±¦¤«¤éº¸¤Ø
85 ,                                    º¸¤«¤é±¦¤Ø
86 .fi
87 .\"