20分奖励,请教个棘手问题,高手进
int main(){ char s[10];
int x;
unsigned long htod(char a[],int n);
gets(s);
x=strlen(s);
printf("%u\n",x);
printf("%u\n%u\n",htod(s,x),x);
printf("%u\n",x);
}
unsigned long htod(char a[],int n)
{
}
当输入12时,输出2 65470 0 2。同样是X为什么,在printf("%u\n%u\n",htod(s,x),x);中输出时为0呢?