Why do we write return in the end of main function, if there is no need of writing it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why do we write return in the end of main function, if there is no need of writing it?

26th Jan 2018, 9:43 AM
Ankit Duhan
Ankit Duhan - avatar
2 Answers
+ 2
Please specify language first
26th Jan 2018, 10:59 AM
Vikash Pal
Vikash Pal - avatar
+ 1
It's C++
26th Jan 2018, 11:54 AM
Ankit Duhan
Ankit Duhan - avatar