Hi,
main()
{
}
Is a user defined function or Built in Functionn
Answers were Sorted based on User's Feedback
Answer / manjunath
Its a user defined function. How can it be inbuilt
function? We are the one who writes the main function.
Program execution starts with main function. We can also
compile a code without main, but we cant create exe, since
it requires a main function to execute.
Is This Answer Correct ? | 55 Yes | 9 No |
Answer / yogesh bansal
main is a system declared user defined function
Is This Answer Correct ? | 31 Yes | 8 No |
Answer / sree
main() itself is a predefined function.
where as main() is a userdefined function because there we
are writing the internal part.
Is This Answer Correct ? | 27 Yes | 8 No |
Answer / vikas kumar shakya
main() is a user defined function. it is the entry point of
any program.
At run time the main() function is searched as the entry to
start the program.
Is This Answer Correct ? | 23 Yes | 6 No |
Answer / govind
=> The main function serves as the starting point for
program execution.
=> It usually controls program execution by directing the
calls to other functions in the program.
=> A program usually stops executing at the end of main,
although it can terminate at other points in the program
for a variety of reasons.
=> At times, perhaps when a certain error is detected, you
may want to force the termination of a program. To do so,
use the exit function. See the Run-Time Library Reference
for information on and an example using the exit function.
so that
main() is a user defined function. it is the entry point of
any program.
Is This Answer Correct ? | 10 Yes | 5 No |
Answer / eklavya sharma
main is a kind of function which is a user defined function for the C compiler developer and it is built in or predifined function to the users using that compiler. The prototype has already been defined in the compiler itself we the users can't change the meaning of that unless or until we write our own compiler.
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / suresh kumar
main() is a system declared bt user defined function
coz main is declared as built in functions but we give the
definition of main according to us. means it is defined by
the user.
Is This Answer Correct ? | 6 Yes | 4 No |
if main() is user define...then why not...we can't change
it's name ??
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / ekta
1: Main is not a user defined function because user defined
functions can be given be given their own names .We can not
give a new name to main.
2:Main is not an inbuilt function because every inbuilt
function is defined in a specific library .But main has not
been defined in any library.it even works without libraries.
So finally main is just a convention to start a program.
Every language like java,c++,c all start their execution
from main.All programs need a starting point.
Is This Answer Correct ? | 4 Yes | 3 No |
what is a headerfile?and what will be a program without it explain nan example?
What is the output of the following progarm? #include<stdio.h> main( ) { int x,y=10; x=4; y=fact(x); printf(“%d\n”,y); } unsigned int fact(int x) { return(x*fact(x-1)); } A. 24 B. 10 C. 4 D. none
Does c have class?
What is meant by keywords in c?
Write a program to print factorial of given number without using recursion?
Difference between macros and inline functions? Can a function be forced as inline?
0 Answers HAL, Honeywell, Zomato,
What does s c mean on snapchat?
What is the purpose of #pragma directives in C?
how to write a cprogram yo get output in the form * *** ***** ******* ********* ******* ***** *** *
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
Who is invented by c?
6)What would be the output? main() { int u=1,v=3; pf("%d%d",u,v); funct1(&u,&v); pf("%d%d\n",u,v); } void funct1(int *pu, int *pv) { *pu=0; *pv=0; return; } a)1 3 1 3 b)1 3 1 1 c)1 3 0 0 d)1 1 1 1 e) 3 1 3 1