best answer > What is the difference between void and int main 2024?- QuesHub | Better Than Quora
  • What is the difference between void and int main?

    都是 情况下 差异

    Questioner:Julian Patel 2023-05-05 14:09:57
The most authoritative answer in 2024
  • Emily Torres——Studied at University of California, Los Angeles (UCLA), Lives in Los Angeles, CA

    In C++, both fun() and fun(void) are same. So the difference is, in C, int main() can be called with any number of arguments, but int main(void) can only be called without any argument. Although it doesn't make any difference most of the times, using --int main(void)-- is a recommended practice in C.read more >>
    +119962023-05-06 14:09:57

About “都是、情况下、差异”,people ask:

READ MORE:

QuesHub is a place where questions meet answers, it is more authentic than Quora, but you still need to discern the answers provided by the respondents.

分享到

取消