main() function defined without return type gives warning

后端 未结 5 576
春和景丽
春和景丽 2020-12-11 12:24

This is my program:

main()
{ 
    printf(\"hello world\\n\");
}

I get this warning when compiling it:

function should retur         


        
5条回答
提交回复
热议问题