【发布时间】:2017-09-05 06:58:28
【问题描述】:
macOS 10.12 上的man operator 显示etc.,这是什么,一个手册页错误?
OPERATOR(7) BSD Miscellaneous Information Manual OPERATOR(7)
NAME
operator -- C operator precedence and order of evaluation
DESCRIPTION
Operator Associativity
-------- -------------
() [] -> . left to right
! ~ ++ -- - (type) * & sizeof right to left
* / % left to right
+ - left to right
<< >> left to right
< <= > >= left to right
== != left to right
& left to right
^ left to right
| left to right
&& left to right
|| left to right
?: right to left
= += -= etc. right to left
, left to right
FILES
/usr/share/misc/operator
BSD June 9, 1993 BSD
【问题讨论】:
-
等。等等......这意味着所有都没有列出......它包括其他人,如 /=
-
它不是运算符,它表示“所有其他赋值运算符,例如
*=、/=等”。 -
对于“等”请看这里:en.wikipedia.org/wiki/Et_cetera