What is the difference between int and void (@ beginning of the main function) | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 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
1 ответ
+ 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