Case statement with braces

后端 未结 0 1936
挽巷
挽巷 2021-01-23 07:08

Why does a case statement allow declarations within braces but not without them?

For example, the following is not OK

switch (op->name) {
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题