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


Please Help Members By Posting Answers For Below Questions

What do you mean by a local block?

632


How can I do peek and poke in c?

623


What is a protocol in c?

561


What is scope and lifetime of a variable in c?

582


When should the volatile modifier be used?

689






What is const volatile variable in c?

583


What are pointers really good for, anyway?

621


Does c have an equivalent to pascals with statement?

576


how logic is used

1504


What are the advantages of c preprocessor?

715


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

2241


Explain the difference between ++u and u++?

642


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

1421


How do you print an address?

752


Explain the use of bit fieild.

717