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

    C void difference

    Questioner:Julian Davis 2023-05-05 05:47:20
The most authoritative answer in 2024
  • Zoe Martin——Studied at the University of Amsterdam, Lives in Amsterdam, Netherlands.

    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-07 05:47:20

About “C、void、difference”,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.

分享到

取消