Question Locked

void main()

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
IS using void main() in c++ legal?

3 replies

by the scummy one

nor do I know c++, a quick Yahoo search showed that this was to be avoided or that it did not work

by tony hopkinson

Is there any reason at all to use it?

Answer no, not one.

Int Main()

The OS expects a result, it's calling main, so give it one. There is a always a result 0 = successfully executed Main.

This discussion is closed to new replies.