+ 1

Who Invokes the main function🤔🤔

Who will invoke the main function in c or c++ or java. Can any one tell me please.

24th Mar 2019, 2:36 PM
Marimuthu Raja
Marimuthu Raja - avatar
1 Respuesta
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.
24th Mar 2019, 3:12 PM
Bebida Roja
Bebida Roja - avatar