单项选择题

有如下的程序:
int f(char*s)
char *p=s;
while(*p!='\0') p++;
return(p-s);

如果在主程序中用下述语句调用上述函数,则输出结果为______。
printf("%d\n",f("best one!"));

A.3
B.6
C.8
D.9