include "stdio.h"int main(int argc,char *argv[]){char s[300];int i,n;printf("Please enter a string...\n");scanf("%299s",s);for(n=0;s[n];n++);for(n--;s[n]>='0' && s[n]<='9';n--);s[n+1]='\0';for(i=n=0;s[n]>='0' && s[n]<='9';...
int main(){ unsigned int i = 0; int len = 0; char a[10][20]; char *p = NULL; for (i = 0; i < 10; i++) { gets(a[i]); if (strlen(a[i]) > len) { len = strlen(a[i]); p = a[i]; } } printf("%s\n", ...
C语言没\0也可以输出的,然后这个puts是获取一行字符串么,要是应该是先\n,还有你这个s[6]越界了, kjrjrjrlkfirkk 便当 3 我的是乱码string11>|������*}�U*** stack smashing detected ***: <unknown> terminatedAborted (core dumped) kjrjrjrlkfirkk 便当 3 编译器gcc kjrjrjr...