大家看看这道strlen()题
#include<stdio.h>#include<string.h>
void main()
{
char str[6]={"China"};
char *p;
printf("%d\n",strlen(str));
strcpy(p,str);
printf("%d\n",strlen(p));
}
为什么printf("%d\n",strlen(p));无输出结果
2008-10-31 21:14
2008-10-31 21:16

2008-10-31 21:18
2008-10-31 21:19
2008-10-31 21:40

2008-10-31 21:56

2008-10-31 22:00
2008-10-31 22:06
2008-10-31 22:17
2008-11-01 01:35