which header file contains main() function in c?
Answer Posted / sarita
main is not included in any header file
It is generally the first user-written function run when a
program starts .
main() is a function called by another function, which is
the start-routine. This routine is created by the compiler .
If you can write your own compiler, then you can think of
changing main() to your name itself!
ANSI compliant compilers need main() as the starting point.
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
Can we declare function inside main?
What are the advantages of c language?
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
How many levels of indirection in pointers can you have in a single declaration?
What is c value paradox explain?
What is pointers in c with example?
What is atoi and atof in c?
What standard functions are available to manipulate strings?
What are the types of pointers in c?
Give differences between - new and malloc() , delete and free() ?
what is the difference between 123 and 0123 in c?
Write a program to swap two numbers without using a temporary variable?
In C, What is the #line used for?
How many levels deep can include files be nested?
What is wrong with this declaration?