返回主页

[C语言 P1367] 以下程序的执行结果是______.  #include <stdio.h>   void mai

 
学习人数: 5.7k
 
正确率: ??%
答案解析

题目描述
未通过

以下程序的执行结果是______.

 #include <stdio.h>

  void main( )

  { int x=1,y=0;

    switch (x)

    {undefined

      case 1:

           switch (y)

           {undefined

            case 0:printf("first\n");break;

            case 1:printf("second\n");break;

           }

      case 2:printf("third\n");

    }

   }

A) first               B) first

   second               third

C) first               D) second

                       third

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

上一题
下一题
加入错题本
个人笔记
已有15条笔记

登录后提交答案


暂无评论,来抢沙发