Some C++ compilers allow the main function to have return type void. But doesn\'t the Operating System require int type value returned to specify
void
int
The C++ standard does not allow main() to have a return type of void. Most compilers will let it pass for historical reasons, though.