Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why does everyone make so much fuss about “void main()”?

fuss
0
Posted

Why does everyone make so much fuss about “void main()”?

0

Because the return type of the main() function must be int in both C and C++. Anything else is undefined. Bottom line – don’t try to start a thread about this in alt.comp.lang.learn.c-c++ as it has already been discussed many, many times and generates more flamage than any other topic. See also: http://www.eskimo.com/~scs/C-faq/q11.12.html http://home.att.net/~jackklein/ctips01.html#int_main http://www.comeaucomputing.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123