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


Please Help Members By Posting Answers For Below Questions

please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

1322


Explain modulus operator. What are the restrictions of a modulus operator?

596


what value is returned to operating system after program execution?

1599


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1460


What is the use of sizeof?

551






write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3

1641


In C language, a variable name cannot contain?

737


program to convert a integer to string in c language'

1982


Explain what is operator promotion?

631


What does %d do in c?

538


How do I get a null pointer in my programs?

614


What is meant by errors and debugging?

645


When do we get logical errors?

633


Can a file other than a .h file be included with #include?

682


What is use of pointer?

583