main() is the first function in the program which gets called when the program executes.The startup code contains runmain() function which calls main() function.we can't chage the name of the main() function.
main() is the user defined function . the program execution is always started from main. it is not possible to write the program without main()
For C language when the host call a program the address of main is stored and as soon as we give return 0,this is an indication to the host that the program terminated normally.Hence main internally do some system calls to execute the program and returns 0 as it terminate normally or give any number other than ZERO to give signal to the host that it terminated abnormally.
main() is a special function used by c program to tell the compiler where program starts and where the program ends.every c program must consist of one main() function.
if you use more than one main(),the compiler doesn't know which one indicate starting of c program.
main() is a special function used by c program to tell the compiler where program starts and where the program ends.Every c program must consist of one main() function.
If you use more than one main(),the compiler doesn't know which one indicate starting of c program.
main is user define function i.e define by the user and declaration by the Operating system and call by the Operating system.In C language every program compile beginning of the line and run start the main() function.