各位高手路过,走过,帮忙看一下这个古怪的strcpy问题...
#include<stdio.h>#include<string.h>
void main(){
int x=35;
char str[10];
strcpy(str,"www.*共13个字母*/);
printf("%d,%d\n",x,sizeof(str));
}
为什么输出X的值为103噶?请高手解答。
2011-04-23 12:31
2011-04-23 13:09