Answered Questions

  • What is the purpose of main( ) function?

    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...

    shubhanshu sahu

    • Feb 20th, 2017

    This is a default function, compiler enters from here and also exit from here. If you have declared various functions in program then you have to call it inside the main, otherwise they cannot be executed.

    arun

    • Feb 5th, 2017

    It is user defined function, because function body is given by the user, What you will do with main function if we wont write anything inside main function.