优先级与结合性是指运算符与操作数的“紧密程度”;
结合性表明了同一优先级的运算符对同一操作数的紧密程度;
如:
a=b=c;
赋值运算符的结合性为从右至左;
所以a=b=c;相当于a=(b=c);
C语言同大多数语言一样没有指定同一运算符对多个操作数的计算顺序(&&、||、?:和,操作符除外)
以下内容出处:K&R




标签:没有 strong style height alt 赋值运算 ros 结合 enter
标签:没有 strong style height alt 赋值运算 ros 结合 enter
原文地址:https://www.cnblogs.com/tsingke/p/12024353.html