warning: control reaches end of non-void function [-Wreturn-type]

前端 未结 2 1325
说谎
说谎 2020-12-13 07:16

I am having a slight is regarding functions. I believe it is likely because I am not using them. My code is as follows:

/*date difference calculator*/

#incl         


        
2条回答
  •  猫巷女王i
    2020-12-13 08:14

    You can also use EXIT_SUCCESS instead of return 0;. The macro EXIT_SUCCESS is actually defined as zero, but makes your program more readable.

提交回复
热议问题