优先级

#include <stdio.h>
int main()
{
	int i;
	i=1,2;
	printf("%d\n",i);//(i=1),2;逗号运算符在所有的运算符中级别最低 
	/*==和!=高于位操作  (value & mask!=0) ->  value & (mask!=0)
	==和!=高于赋值运算符  c=getchar()!=EOF ->  c=(getchar()!=EOF) 
	算术运算符高于位移运算符  msb<<4+lsb -> msb<<(4+lsb)
	
	 条件运算符的结合方向是自右至左。例如:
a>b ? a : c>d ? c : d;
应该理解为: 
a>b ? a : ( c>d ? c : d );*/
	return 0;
}

发布了68 篇原创文章 · 获赞 5 · 访问量 2万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章