-->
当前位置:首页 > 题库

单选题:What value will the variable i be after executing the following

Luz5年前 (2021-05-10)题库791
What value will the variable i be after executing the following piece of code?
```
int i=1;
switch(i)
{case 0: i++;
case 1: i++;
case 2: i++;
default: i++;
}
```
@[D](1)

A. 1
B. 2
C. 3
D. 4




A.1
B.2
C.3
D.4


答案:D