单选题

有以下程序

#include <stdio.h>

int fun(char*s){

char*p=s;

while(*p!=0)p++;

return(p-s);}

main() {printf("%d\n",fun("goodbey!"));}

程序的输出结果是(    )

A

6

B

8

C

0

D

7

赣ICP备20007335号-2