面向对象C++程序段的题,求解!
阅读程序段inta=1,b;switch(a){case0:b=a;case1:b=a+1;case2:b=a+2;case3:b=a+3;}则,b的值为()A.1B.2...
阅读程序段
int a = 1, b;
switch (a)
{
case 0:
b = a ;
case 1:
b = a + 1;
case 2:
b = a + 2 ;
case 3:
b = a + 3;
}
则,b 的值为( )
A.1
B.2
C.3
D.4 展开
int a = 1, b;
switch (a)
{
case 0:
b = a ;
case 1:
b = a + 1;
case 2:
b = a + 2 ;
case 3:
b = a + 3;
}
则,b 的值为( )
A.1
B.2
C.3
D.4 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询