+ 1
int main()
when int main() function is called ?
2 Réponses
+ 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
+ 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 .