Hi,
main()
{
}
Is a user defined function or Built in Functionn
Answers were Sorted based on User's Feedback
Answer / suyash kumar (c.s. 1st year ni
it is user defined function..........as if we make another
funtion say for factorial void fact() and store it in
lib fun. then apply it in program except main it work as a
funtion.........moreover we defined main as we write
instruction in it and execution take place
| Is This Answer Correct ? | 1 Yes | 5 No |
Answer / divya
it is built in function because (main )codings are written
by the software developer.so,we cant change anything in
this built in function.but user defined functions are
changed by us.
so it is built in function
| Is This Answer Correct ? | 6 Yes | 12 No |
Answer / vignesh1988i
it's actually user defined built in function...... since we
the user gave the function name as main() when we write the
coding for the compailer........
| Is This Answer Correct ? | 28 Yes | 41 No |
Answer / abhishek munde
main () is user defined function built in function.....
bcoz we define what it will do... and it already has it's
name as main.
| Is This Answer Correct ? | 10 Yes | 26 No |
Answer / narender vadhava
it's a inbuilt function but it don't return any value
because void is used to return a charachter value.
| Is This Answer Correct ? | 21 Yes | 67 No |
why programs in c are running with out #include<stdio.h>? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }
What is line in c preprocessor?
Explain how do you generate random numbers in c?
What is the output for the following program #include<stdio.h> main() { char a[5][5],flag; a[0][0]='A'; flag=((a==*a)&&(*a==a[0])); printf("%d\n",flag); }
Describe how arrays can be passed to a user defined function
How does the assert() function work?
Write a program to find whether the given number is prime or not?
m=++i&&++j(||)k++ printf("%d"i,j,k,m)
How can I find out if there are characters available for reading?
Can a program have multiple main() functions?
How important is structure in life?
what is the difference between while and do while?