Hi,
main()
{
}
Is a user defined function or Built in Functionn
Answer Posted / amit jha
1. main() itself is a predefined function.
where as main() is a userdefined function because there we
are writing the internal part.
2. it is an inbuilt function i.e, main() it indicates the
starting of the program and it is a user defined function
when the user defines it as void main() or int main(void).
3. A program usually stops executing at the end of main,
although it can terminate at other points in the program
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. so that main() is a user defined
function.
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What is the basic structure of c?
What are the three constants used in c?
What is a method in c?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
Why c is called top down?
Which is better between malloc and calloc?
What is the difference between memcpy and memmove?
Can you please explain the scope of static variables?
Explain why C language is procedural?
How can I recover the file name given an open stream or file descriptor?
Give differences between - new and malloc() , delete and free() ?
what is recursion in C
What is wrong with this initialization?
Why c is a procedural language?
What type of function is main ()?