main() { char s[]="stop\0\n\""; printf("%d\n",strlen(s)) }
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/24 17:31:39
main(){chars[]="stop\0\n\"";printf("%d\n",strlen(s))}main(){chars[]="stop\0\n\"";printf("%d\n",strle
main() { char s[]="stop\0\n\""; printf("%d\n",strlen(s)) }
main() { char s[]="stop\0\n\""; printf("%d\n",strlen(s)) }
main() { char s[]="stop\0\n\""; printf("%d\n",strlen(s)) }
//你程序有问题,但是改一下输出4,因为strlen是以‘\0’来作为结束标志的
#include"stdio.h"
#include"string.h"
main() {
char s[]="stop\0\n";
printf("%d\n",strlen(s));
}