返回主页
学习人数: 2.8k
stroke-dashoffset="45*2.6389" stroke-linecap="round" transform="rotate(-90 50 50)"/>
正确率: 45%
未通过

若有定义: float w;  int a, b; 则合法的switch语句是

     A) switch(w)                      B) switch(a);

        { case 1.0: printf("*\n");        { case 1 printf("*\n");

          case 2.0: printf("**\n");         case 2 printf("**\n");

        }                                 }

     C) switch(b)                      D) switch(a+b);

        { case 1:   printf("*\n");        { case 1:  printf("*\n");

          default:  printf("\n");           case 2:  printf("**\n");

          case 1+2: printf("**\n");         default: printf("\n");

        }                                 }

上面问题的答案是:
A A 选项
B B 选项
C C 选项
D D 选项
回答区域

登录后提交答案


3 个回答 (点击展开回答)