Every C# application must contain a single Main method specifying where program execution is to begin. In C#, Main is capitalized, while Java uses lowercase main. Main can only return int or void, and has an optional string array argument to represent command-line parameters: static int Main(string[] args) { //... read more
In the C language, the program ends when it encounters the last brace in the main() function. That’s the sign that the program is done, after which control returns to the operating system. read more
In Turbo C , void main() will be accepted, whereas in dev-cpp main() should return a value. 3.return 0 simply exits the program with exit status 0 , in other words the return value determines the exit status of the main thread. read more