以下程序段的运行结果是( )。 #include<stdio.h> main() {int x=2,y=1: switch(x) {case 1: switch(y) {case 0:printf("x=2,y=1\

admin2011-06-10  33

问题 以下程序段的运行结果是(       )。   #include<stdio.h>   main()   {int x=2,y=1:   switch(x)   {case 1:   switch(y)   {case 0:printf("x=2,y=1\n");break;   case 1:printf("y=1\n");break;   }   case 2:printf("x=2\n");   }   }

选项

答案x=2

解析
转载请注明原文地址:https://jikaoti.com/ti/waB0FFFM
0

最新回复(0)