+ 1
void main() {} does not return any value indication if it finished properly while int main() {} does (usually 0 = execution finished normally, everything else indicates that something went wrong). In C# main() is generally void; however System.Enviroment.Exit(int n) will end the task and return a number like int main() does in C++.
13th Dec 2016, 9:15 PM
Maike