单项选择题

有以下程序:
#include<stdio.h>
main()
int a[5]=1,2,3,4,5,b[5]=0,2,1,3,0,i,s=0;
for(i=0;i<5;i++)s=s+a[b[i]];
printf("%d\n",s);
程序运行后的输出结果是( )。

A.6
B.10
C.11
D.15