What is the different between 'void man()' & 'int main()' function ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the different between 'void man()' & 'int main()' function ?

please describe in details.

1st Jan 2018, 5:56 PM
Tarequl Islam
Tarequl Islam - avatar
2 Answers
+ 6
Value for return must to be int in second time forcely
1st Jan 2018, 5:59 PM
Daniel
Daniel - avatar
+ 1
Int main() returns an int used to indicate whether the application closed or crashed. Void returns null.
1st Jan 2018, 6:40 PM
josh mizzi
josh mizzi - avatar