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
What is meant by realloc()?
What is the difference between text and binary i/o?
Why main function is special give two reasons?
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.
What is volatile, register definition in C
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
When should a type cast not be used?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
Explain the properties of union.
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
How do I get an accurate error status return from system on ms-dos?
When should I declare a function?
write a program to copy the string using switch case?
What is the difference between void main and main in c?
in linking some of os executables are linking name some of them