1.

What Is The Purpose Of Main( ) Function?

Answer»

The function main() calls / invokes other functions within it. The execution of the program ALWAYS starts with main() function.

The main() function is :

  • The first function to START a program
  • Returns int value to the environment which called the program
  • It can be called RECURSIVELY.
  • It is a user defined function, except the name
  • LIKE other functions, main(0 function can receive arguments. It has a) argument count and b) argument vector(STRING argument)

The function main() calls / invokes other functions within it. The execution of the program always starts with main() function.

The main() function is :



Discussion

No Comment Found