1.

Explain The Purpose Of Main( ) Function?

Answer»

The FUNCTION main( ) invokes other functions within it.It is the first function to be called when the program starts execution.

  • It is the starting function.
  • It returns an int value to the environment that called the program.
  • Recursive call is allowed for main( ) also.
  • It is a user-defined function.
  • Program execution ENDS when the closing brace of the function main( ) is reached.
    1. It has two arguments argument count and.
    2. argument vector (REPRESENTS strings PASSED). 
  • Any user-defined name can also be used as parameters for main( ) instead of argc and ARGV.

The function main( ) invokes other functions within it.It is the first function to be called when the program starts execution.



Discussion

No Comment Found