scanf函数使用时忘记在变量前加上&

scanf("%d%d%d",year,month,date);

忘记在year,month,date前少了&后,程序运行会没有输出,调试时会出现“Program received signal SIGSEGV, Segmentation fault.”错误:

posted on 2019-09-02 18:37  Arthur_F  阅读(310)  评论(0)    收藏  举报

导航