Dec 16 2010

来源:互联网 发布:战锤全面战争优化 编辑:程序博客网 时间:2024/05/14 00:58

C++, C中 

左值 L value  表示可寻址。The "l" in l-value can be though of as location

右值 R value 表示可读。The "r" in rvalue can be thought of as "read" value.   

 

 

逻辑运算中,由于 &&与||有短路的特性,

因此我们可以用来处理有一定逻辑关系的条件:

 

char *p=NULL;

...

...

while(p && (*p)) {

// do something

}

 

操作符优先级

赋值 = 

比较

算术

 

 

*ite++

(*sp).fun()

 

原创粉丝点击