C语言程序设计
#include <string.h> #include <stdio.h> int main() { char *sptr1=0; char *sptr=0; sptr="i am a"; printf("%s",sptr); strcpy(sptr1,sptr); printf("\n%s",sptr1); getch(); return 0; } 为什么输出的sptr1是NULL???????
#include <string.h> #include <stdio.h> int main() { char *sptr1=0; char *sptr=0; sptr="i am a"; printf("%s",sptr); strcpy(sptr1,sptr); printf("\n%s",sptr1); getch(); return 0; } 为什么输出的sptr1是NULL???????
其他:这程序崩溃了 要资料吗
C语言程序设计 我可以帮你
C语言程序 Q 我 谈
C语言程序设计
上一个:c语言vc++6.0中的问题 “This file does not exist. Do you want to build it?”
下一个:C++随机生成一个强连通图!