What is the purpose of main( ) function?

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.


By:Vivek
Date:2029-12-08 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related C Subjective Links

C Subjective interview questions and answers for experienced and fresher