what is main function | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

what is main function

13th Jul 2016, 2:56 PM
Bala Krishna
Bala Krishna - avatar
2 Answers
+ 1
Main function as the name suggests is the most important function of the program it defines the entry point to the program... as well as the program ends here no matter what functions you call in-between or whichever instructions you write... simply your program starts and ends in main
13th Jul 2016, 3:08 PM
Vedant Patadia
Vedant Patadia - avatar
+ 1
and yes there's a discussion about the same in the latter parts of Q & A please use the search capability of the app
13th Jul 2016, 3:09 PM
Vedant Patadia
Vedant Patadia - avatar