下列程序段的输出结果是【 】。 int n=’c’; switch(n++) { default:printf("error");break; case ’a’:case ’A’:case ’b’:case ’B’:printf("good");b

admin2009-02-15  16

问题 下列程序段的输出结果是【  】。
int n=’c’;
switch(n++)
{  default:printf("error");break;
  case ’a’:case ’A’:case ’b’:case ’B’:printf("good");break;
  case ’c’:case ’C’:printf("pass");
  case ’d’:case ’D’:printf("warn");
}

选项

答案passwarn

解析
转载请注明原文地址:https://kaotiyun.com/show/3gXp777K
0

最新回复(0)