Associate
- Joined
- 14 Dec 2005
- Posts
- 563
- Location
- Dublin
void main goes against the standard, which says it should be int main, and return 0 on success (though you can leave the return out as return 0 is assumed by the compiler)
Returning 0 indicates success. A program should return 0 when it has finished successfully. Note: the 'main' function in C is declared as int main not void main as it is in Java, therefore an integer value should always be returned upon completion of the program.