0
When you have nothing to return, then use Void but if you want to return something then use int,string etc instead of Void. for example int a,b,c; void myFunction(){ c = a+b; //So Now here You can't use return type } int myFunction(){ c = a+b; //So Now here You can use return type return c; } Hope you got the idea
12th Sep 2016, 4:31 PM
Waqar Ali
Waqar Ali - avatar