+ 1
Who Invokes the main function🤔🤔
Who will invoke the main function in c or c++ or java. Can any one tell me please.
2 Réponses
0
The operating system. Also, when you do "return 0" on the main function it tells the OS wether the program executed correctly. In linux, after executing a program from the terminal you can use "echo $?" to get the status of the previously runned program.