C
Programming and Technical
main()
{i
nt c[ ]={2.8,3.4,4,6.7,5};
int j,*p=c,*q=c;
for(j=0;j
Read Solution (Total 0)
C Other Question
main()
{
static int var = 5;
printf("%d ",var--);
if(var)
main();
}
find output
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