阅读: 评论:0
写一个函数,求一个字符串的长度,在 main 函数中输入字符串,并输出其长度。
#include <stdio.h> int length(char *s) { int i=0;while(*s!='