c语言printf("%d\n%d",strlen(s))后面的%d输出的是啥了

#include<stdio.h>
#include<string.h>
char *s="12345";
int main()
{
printf("%d\n%d\n",strlen(s));
return 0;
}

那是写错了。后面的%d没有与之匹配的变量,什么也不会输出——有些编译器下可能会输出0。
温馨提示:答案为网友推荐,仅供参考
相似回答
大家正在搜