• 2022-10-31
    switch语句中必须要有default子句。
    A: 正确
    B: 错误
  • B

    内容

    • 0

      switch语句中必须要有default选项。( )

    • 1

      switch语句中必须要存在default语句才能正常执行。( )

    • 2

      下列关于switch语句的描述错误的是______。 A: switch语句中的default子句可以没有,也可以有一个 B: switch语句中的每一个case子句中必须有一个break语句 C: switch语句中的default子句可放在switch语句中的任何位置 D: switch语句中的case子句后面的表达式只能是整型、字符型或枚举类型常量

    • 3

      在使用switch语句时,default子句必须有,不能省略。 A: 正确 B: 错误

    • 4

      switch语句中default语句是必须的。