Two 'main' functions in C/C++

后端 未结 16 1445
一整个雨季
一整个雨季 2020-12-01 16:08

Can I write a program in C or in C++ with two main functions?

16条回答
  •  借酒劲吻你
    2020-12-01 16:35

    You can write it, and it'll compile, but it won't link (unless your linker is non-comformant)

提交回复
热议问题