码迷,mamicode.com
首页 > 其他好文 > 详细

关于case语句中声明变量并初始化的注意事项

时间:2016-10-13 09:35:29      阅读:141      评论:0      收藏:0      [点我收藏+]

标签:

今天看到一句对这个问题特别精辟的总结,记录如下:

It is possible to transfer into a block, but not in a way that bypasses declarations with initialization. A program that jumps from a point where a local variable with automatic storage duration is not in scope to a point where it is in scope is ill-formed unless the variable has POD type (3.9) and is declared without an initializer (8.5).

关于case语句中声明变量并初始化的注意事项

标签:

原文地址:http://www.cnblogs.com/ptolemaeus/p/5955071.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!