有以下程序
#include <stdio.h>
int fun(char*s){
char*p=s;
while(*p!=0)p++;
return(p-s);}
main() {printf("%d\n",fun("goodbey!"));}
程序的输出结果是( )
6
8
0
7