Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Which is better oop or procedural?

1002


what will be the output for the following main() { printf("hi" "hello"); }

10840


How pointers are declared?

918


write a program to display all prime numbers

1922


Is python a c language?

956


If the size of int data type is two bytes, what is the range of signed int data type?

993


Where in memory are my variables stored?

1123


Explain how can you tell whether two strings are the same?

983


What do you know about the use of bit field?

1001


Is fortran still used in 2018?

996


What is a scope resolution operator in c?

1213


Can we compile a program without main() function?

1081


What is 1f in c?

2585


Are comments included during the compilation stage and placed in the EXE file as well?

1037


Write a program to generate random numbers in c?

1058