"Void" guides main method not to wait for any return types. It will simply execute the operations in the block.
- static void Main()
- {
- //...
- }
This code forces the main method to return one integer value. For example, if you pass two numbers and expect the sum of those from a method, you can make use of the specific return types.
-
- static int Main()
- {
- //...
- return 0;
- }
-
Main method welcomes arguments also for a efficient program.
-
- static int Main(string[] args)
- {
- //...
- return 0;
- }
-