单项选择题

下列程序的执行结果是______。
in(f(char*s)
char*p=s;
while(*p!='\0')p++;
return(p-s);
main()
printf("%d\n",f("goodbye!"));

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