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
Which is better oop or procedural?
what will be the output for the following main() { printf("hi" "hello"); }
How pointers are declared?
write a program to display all prime numbers
Is python a c language?
If the size of int data type is two bytes, what is the range of signed int data type?
Where in memory are my variables stored?
Explain how can you tell whether two strings are the same?
What do you know about the use of bit field?
Is fortran still used in 2018?
What is a scope resolution operator in c?
Can we compile a program without main() function?
What is 1f in c?
Are comments included during the compilation stage and placed in the EXE file as well?
Write a program to generate random numbers in c?