goodbey! 一共8个字符int fun(char*s){char*p=s;//p为字符串首地址while(*p!=0)p++; //循环找到尾return(p-s); //返回尾-头,得到字符长度}因此输出8 答案为D
D 8个 \n 的地址 减去 g 的地址