单项选择题

以下程序的输出结果是( )。
main()
int i;
for(i=0;i<8;i++)
switch(i)
case 0:
case 3:i+=2;
case 1:
case 2:i+=3;
default:i+=5;

cout<<i;

A.11
B.35
C.10
D.45