What is the difference b/w int main and void main? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the difference b/w int main and void main?

23rd Sep 2018, 3:02 PM
Aman
2 Answers
+ 4
int main returns 0 which means program executed successfully with no errors. void main means null or nothing, which means main function will return nothing
23rd Sep 2018, 3:44 PM
blACk sh4d0w
blACk sh4d0w - avatar
0
this question was asked already. please, search if your question was answered before asking.
23rd Sep 2018, 3:48 PM
Ulisses Cruz
Ulisses Cruz - avatar