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

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

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




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


答案:D