Multiple definition of main()

前端 未结 5 1740
刺人心
刺人心 2021-01-24 06:36

Hi guys trying to use two main() and getting this error multiple definition of main(). I renamed my main functions then why is this error and also first defined here for my prin

5条回答
  •  不要未来只要你来
    2021-01-24 06:37

    It's not possible for a C program to have more than one main() in it. Also, main() should be declared as an int and return an integer value (usually 0).

提交回复
热议问题