69,371
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
#include <string.h>
int main()
{
char *s = "\ta\018bc";
printf("s的长度:%d\n", strlen(s));
for(int i = 0; i < strlen(s); i++)
{
printf("%c ", s[i]);
}
for(;*s != '\0'; s++)
printf("*");//这里为什么输出6个*,不懂
printf("\ns的长度:%d\n", strlen(s));
}