C程序出现段错误

原因是

int  a=4000;

printf("a=%s",a);

a是个int型变量,使用%s输出打印,越限了。

猜你喜欢

转载自blog.csdn.net/modi000/article/details/125654472