单项选择题

以下程序的输出结果是
intf() static int i= 0;
int s=1;
s+=i; i++;
return s;main( ) inti, a=0;
for(i=0;i<5;i++)a+=f();
cout<<a<<end1;

A.20
B.24
C.25
D.15