这个程序适用于输入: "problem"
"problem"
但停下来: "this is the problem,this is the problem,this is the problem"
"this is the problem,this is the problem,this is the problem"
为什么?
#include <stdio.h> int main() { char *p; gets(p); puts(p); return 0; }
有没有内存保护问题?
c pointers
c ×1
pointers ×1