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
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....
Explain which function in c can be used to append a string to another string?
What is include directive in c?
Can you define which header file to include at compile time?
How can I find out if there are characters available for reading?
What is the purpose of void in c?
Give the rules for variable declaration?
Can main () be called recursively?
Can we compile a program without main() function?
Describe the steps to insert data into a singly linked list.
How can this be legal c?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
Why malloc is faster than calloc?
Is array name a pointer?