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 is meant by realloc()?

672


What is the difference between text and binary i/o?

587


Why main function is special give two reasons?

943


design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.

1496


What is volatile, register definition in C

688






int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

651


When should a type cast not be used?

623


An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

655


Explain the properties of union.

608


What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

810


How do I get an accurate error status return from system on ms-dos?

646


When should I declare a function?

622


write a program to copy the string using switch case?

2400


What is the difference between void main and main in c?

622


in linking some of os executables are linking name some of them

1648