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
Can a variable be both const and volatile?
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
Explain built-in function?
What is array in C
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
Suggesting that there can be 62 seconds in a minute?
Is javascript written in c?
What is calloc in c?
a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list
What is the stack in c?
What would be an example of a structure analogous to structure c?
Is c easier than java?
Which node is more powerful and can handle local information processing or graphics processing?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
What are lookup tables in c?