Default case in a switch condition

前端 未结 3 1841
太阳男子
太阳男子 2020-12-03 17:04

I have this code:

  #include                                   
  int main()
  {   
      int a=10;
      switch(a)
      {   
      case \'1\         


        
3条回答
  •  情歌与酒
    2020-12-03 17:25

    That's not a syntax error. defalut is a valid label, and it could be the target of a goto.

提交回复
热议问题