0

What is the difference between void main and return

19th Dec 2017, 1:59 AM
Jui Kulkarni
2 Answers
+ 2
void - no value to return main - the main method, where the program starts return - used to return a value from a method (function), or just to return to the place where the method is called.
19th Dec 2017, 10:44 AM
Boris Batinkov
Boris Batinkov - avatar