Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

What is the purpose of main( ) function?
Main function is to be called when the program getting started.
1.It is the first started function.
2.Returns integer value. 
3.Recursive call is allowed for main() also.
4.it is user-defined function
5.It has two arguments: 
  5.1)argument count  
  5.2) argument vector(strings passed)
6.We can use any user defined name as parameters for main(),behalf of argc and argv.

Posted By: Name:Rajesh Kr URL: What is the purpose of main( ) function?