单选题:What value will the variable i be after executing the following
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
```
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