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


Please Help Members By Posting Answers For Below Questions

Write a program to swap two numbers without using the third variable?

792


Is c a great language, or what?

835


Explain what is wrong with this statement? Myname = ?robin?;

1314


Write a C program linear.c that creates a sequence of processes with a given length. By sequence it is meant that each created process has exactly one child. Let's look at some example outputs for the program. Here the entire process sequence consists of process 18181: Sara@dell:~/OSSS$ ./linear 1 Creating process sequence of length 1. 18181 begins the sequence. An example for a sequence of length three: Sara@dell:~/OSSS$ ./linear 3 Creating process sequence of length 3. 18233 begins the sequence. 18234 is child of 18233 18235 is child of 18234 ........ this is coad .... BUt i could not compleate it .....:( #include #include #include #include int main(int argc, char *argv[]) { int N; pid_t pid; int cont; if (argc != 2) { printf("Wrong number of command-line parameters!\n"); return 1; } N = atoi(argv[1]); printf("Creating process sequence of length %d.\n",N); printf("%d begins the sequence.\n",getpid()); /* What I have to do next ?????? */ }

1840


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

2069


Why static variable is used in c?

749


Explain what is meant by 'bit masking'?

855


What is graph in c?

803


Which header file is used for clrscr?

776


Why c is called top down?

832


Write program to remove duplicate in an array?

797


What is a program?

906


What do the functions atoi(), itoa() and gcvt() do?

903


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1708


Explain what is the heap?

799