Declarations within an if statement

后端 未结 0 1215
借酒劲吻你
借酒劲吻你 2021-01-28 05:41

Are declarations within an if statement illegal without an enclosing brace? For example:

if (argc == 2)
    char* str = "Two";
else
    cha         


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