Friday, May 16, 2008

What is the purpose of main( ) function?

main() is the user defined function.

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()

No comments:

Contributors