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
Are local variables initialized to zero by default in c?
Explain how can I open a file so that other programs can update it at the same time?
How can I sort a linked list?
Can a variable be both constant and volatile?
How do you define a string?
Why isnt there a numbered, multi-level break statement to break out
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
How can I make sure that my program is the only one accessing a file?
What is union in c?
Explain how can I prevent another program from modifying part of a file that I am modifying?
Write a program to print factorial of given number using recursion?
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
Is c is a low level language?
Explain what are header files and explain what are its uses in c programming?
What is the use of bit field?