`
talin2010
  • 浏览: 503219 次
  • 性别: Icon_minigender_1
  • 来自: 河北
社区版块
存档分类
最新评论

15.6 Expression statements

 
阅读更多
An expression-statement evaluates a given expression. The value computed by
the expression, if any, is
discarded.
expression-statement:
statement-expression ;
statement-expression:
invocation-expression
object-creation-expression
assignment
post-increment-expression
post-decrement-expression
pre-increment-expression
pre-decrement-expression
Not all expressions are permitted as statements. [Note: In particular,
expressions such as x + y and
x == 1, that merely compute a value (which will be discarded), are not
permitted as statements. end note]
Execution of an expression statement evaluates the contained expression and
then transfers control to the
end point of the expression statement. The end point of an
expression-statement is reachable if that
expression-statement is reachable.
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics