职教组卷基于海量职教高考试题库建立的在线组卷及学习系统
职教组卷
  • 题型:选择题 题类:单元测试 难易度:中档

    以下程序段的输出结果是(  )‍
    int x,y;
    x=5;
    switch(x)
    { case 1:
    case 2:
    case 3:
    case 4: printf("x<5\n");
    case 5: printf("x=5\n",x);
    default: printf("error\n");}
    A. x<5 B. x=5 C. x=5error D. 程序中有语法错误
  • 相关试卷