+ 2

What is the difference between int and void (@ beginning of the main function)

2nd Sep 2019, 6:11 PM
Satyam Keshri
Satyam Keshri - avatar
2 Answers
+ 1
int returns an int once the function finished it will return somthing back to were it was called.. void returns nothing meaning when the function has finished executing it just exits the function without returning anything back to were it was called.
2nd Sep 2019, 7:52 PM
D_Stark
D_Stark - avatar