techpreparation-homepage

Home  Interview Questions  Certifications  Aptitude Questions  Tutorials  Placement Papers  Search  Resume  Soft Skills  Video  Forum  Blog

Android app on Google Play

Technical Interview Questions

Java Interview Questions
Unix Interview Questions
SQL Interview Questions
C# Interview Questions
                              .........More

Aptitude Interview Questions
C/C++ Aptitude Questions
C Aptitude Questions
                              .........More

Tutorials
C Tutorial
C++ Tutorial
                              .........More

Programming Source Codes
C/C++ Source Codes
C# Source Codes
                              .........More

Online Quiz
C Online Quiz
C++ Online Quiz
                              .........More

 

 
Home > C Interview 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 function

Program execution ends when the closing brace of the function main( ) is reached.

It has two arguments 1)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
 

<< Go Back to C Interview Questions. 

Have a Question ? post your questions here. It will be answered as soon as possible.

Check Object Oriented Interview Questions for more Object Oriented Interview Questions with answers

Check Data Structure Interview Questions for more data structure interview questions with answers