下列代码段执行后 a的值为()。 float x=2.4f; int a=0; switch((int) x) { case 1: a++; case 2:

大学网课 已帮助 人

下列代码段执行后,a的值为()。 float x=2.4f; int a=0; switch((int) x) { case 1: a++; case 2: a+=2; case 3: a+=3; }

A.3

B.5

C.6

D.1

下列代码段执行后 a的值为()。 float x=2.4f; int a=0; switch((int) x) { case 1: a++; case 2:

热搜:源程序只有经过编译和链接后才能成为可执行程序