+ 1

int main()

when int main() function is called ?

19th Dec 2018, 9:31 AM
Punit Raj
Punit Raj - avatar
2 Answers
+ 7
When you execute a C or C++ program, the runtime system starts your program by calling its main()function first. The main() function then calls all the other functions required to run your program. Before asking a question on the Q/A, try to search :  • Google Advenced Search : Set domain to 》sololearn.com《 for  search only on the SoloLearn https://www.google.com/advanced_search   • Eclipse Wiki : "Before asking a question on the forums" https://wiki.eclipse.org/Before_asking_a_question_on_the_forums https://code.sololearn.com/W26q4WtwSP8W/?ref=app
19th Dec 2018, 10:17 AM
Danijel Ivanović
Danijel Ivanović - avatar
+ 2
The "main()" function in your class is get called whenever you execute your program , in fact for the execution of your program first the main() method is searched for execution .
19th Dec 2018, 9:52 AM
Jayesh Patil
Jayesh Patil - avatar