摘要
文章分析了序列点在C语言表达式求值中的作用:序列点左边的操作数要先于其右边的操作数求值,讨论了逗号操作符,、逻辑与操作符&&、逻辑或操作符||和条件操作符?:的问号处需要序列点的原因,举例说明序列点在表达式求值中的作用。
The paper analyzes the function of sequence points in the C language expression evaluation: the operand on the left of the sequence points should be evaluated before that on the right of the sequence points. It also discusses the comma operator, logical conjunction operator &&, logical disjunction operator ||, and the conditional operator? It shows why the sequence points are needed at the conditional operator?, and illustrates the function of the sequence points in expression evaluation.
出处
《绥化学院学报》
2014年第8期147-149,共3页
Journal of Suihua University
关键词
序列点
表达式求值
C语言
the sequence points
expression evaluation
C language