which header file contains main() function in c?
Answer Posted / tejas
main is the only function which is called from outside of the program. the code for invoking the main function is written inside something called as a "startup code". this startup code contains the prototype of main function. the main function is "called" from within this startup code which then is linked by linker to its definition created by the programmer. The linker, as we know, is responsible for linking object code to lib code. Along with these two codes, it also links startup code to create the executable file.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is header file in c?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
What is spaghetti programming?
What are the salient features of c languages?
what is a constant pointer in C
What are the rules for the identifier?
Where are the auto variables stored?
Are c and c++ the same?
Once I have used freopen, how can I get the original stdout (or stdin) back?
When would you use a pointer to a function?
How many loops are there in c?
What is the Purpose of 'extern' keyword in a function declaration?
Compare and contrast compilers from interpreters.
What is meant by high-order and low-order bytes?
What is %d used for?