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 are # preprocessor operator in c?
general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only
What are the two types of functions in c?
Explain modulus operator. What are the restrictions of a modulus operator?
Explain what is operator promotion?
What is structure packing in c?
what are the advantages of a macro over a function?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
What is formal argument?
What is build process in c?
How do you initialize pointer variables?
What is preprocessor with example?
What is boolean in c?
What are qualifiers and modifiers c?
What are the features of the c language?