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 do you mean by a local block?
How can I do peek and poke in c?
What is a protocol in c?
What is scope and lifetime of a variable in c?
When should the volatile modifier be used?
What is const volatile variable in c?
What are pointers really good for, anyway?
Does c have an equivalent to pascals with statement?
how logic is used
What are the advantages of c preprocessor?
write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list
Explain the difference between ++u and u++?
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
How do you print an address?
Explain the use of bit fieild.