Hi,
main()
{
}

Is a user defined function or Built in Functionn

Answer Posted / ekta

1: Main is not a user defined function because user defined
functions can be given be given their own names .We can not
give a new name to main.

2:Main is not an inbuilt function because every inbuilt
function is defined in a specific library .But main has not
been defined in any library.it even works without libraries.

So finally main is just a convention to start a program.
Every language like java,c++,c all start their execution
from main.All programs need a starting point.

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the facialities provided by you after the selection of the student.

1774


What are the keywords in c?

746


What is the difference between functions abs() and fabs()?

754


What is use of pointer?

687


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2009






how can I convert a string to a number?

688


What is modeling?

723


What is data types?

718


Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?

1103


Which is better pointer or array?

698


What is extern storage class in c?

612


How do we print only part of a string in c?

681


List the difference between a "copy constructor" and a "assignment operator"?

677


What is the full form of getch?

727


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

1620