|
Technical Interview Questions
.Net Interview Questions
C++ Interview Questions
Unix Interview Questions
.........More
Download e-Books
C Interview Questions e-book
Aptitude Interview Questions
C/C++ Aptitude Questions
C Aptitude Questions
.........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
Have a Question ?
post your questions here. It
will be answered as soon as possible.
|