出一小题,考下内存堆栈
程序代码:#include<stdio.h>
#include<malloc.h>
#include<string.h>
int main()
{
char d[]="456789";
char s[]="123";
strcpy(s,d);
printf("%s\n%s\n",d,s);
return 0;
}
不用编译器,写出这段代码的输出。
程序代码:#include<stdio.h>
#include<malloc.h>
#include<string.h>
int main()
{
char d[]="456789";
char s[]="123";
strcpy(s,d);
printf("%s\n%s\n",d,s);
return 0;
}
2010-12-18 15:13
2010-12-18 15:22
2010-12-18 15:23

2010-12-18 15:39
2010-12-18 15:47

2010-12-18 15:47
2010-12-18 15:59
2010-12-18 16:01
2010-12-18 16:04
2010-12-18 16:08