12.3.3.4 Declaration statements
?If stmt is a declaration statement without initializers, then v has the
same definite assignment state at
the end point of stmt as at the beginning of stmt.
?If stmt is a declaration statement with initializers, then the definite
assignment state for v is
determined as if stmt were a statement list, with one assignment statement
for each declaration with
an initializer (in the order of declaration).
?If stmt is a declaration statement without initializers, then v has the
same definite assignment state at
the end point of stmt as at the beginning of stmt.
?If stmt is a declaration statement with initializers, then the definite
assignment state for v is
determined as if stmt were a statement list, with one assignment statement
for each declaration with
an initializer (in the order of declaration).
声明语句的确定赋值状态
博客主要讨论声明语句的确定赋值状态。若声明语句无初始化器,变量在语句终点和起点的确定赋值状态相同;若有初始化器,则变量的确定赋值状态如同语句列表,按声明顺序为每个有初始化器的声明设置赋值语句来确定。
1133

被折叠的 条评论
为什么被折叠?



