which header file contains main() function in c?

Answers were Sorted based on User's Feedback



which header file contains main() function in c?..

Answer / raj

Please if u don't know answer then don't post comment..
Please search stdio.h file
it doesn't contain main function declaration


thanks

Is This Answer Correct ?    36 Yes 0 No

which header file contains main() function in c?..

Answer / m3th0d

main() doesn't require any header file,
header files are not the part of C language they just
provides the means of accessing input/output and other
utilities.

int main()
{
int a=10;
return 0;
}
can be compiled without including any header file :)

Is This Answer Correct ?    35 Yes 3 No

which header file contains main() function in c?..

Answer / raj

pls without knowing correct ans dont provide any wrong ans......

Is This Answer Correct ?    18 Yes 1 No

which header file contains main() function in c?..

Answer / guruprasad

doesn't require any header file in function main(),

Because nothing else calls main. It is the entry point for
execution.

Is This Answer Correct ?    11 Yes 1 No

which header file contains main() function in c?..

Answer / ankith.v

There is no header file for main function

Is This Answer Correct ?    11 Yes 2 No

which header file contains main() function in c?..

Answer / suresh

there is no header file that contains main()

Is This Answer Correct ?    8 Yes 0 No

which header file contains main() function in c?..

Answer / reshma pawar

main is not included in any header file
It is just neaming convention for starting
the execution of program and main is not reserved
word also

Is This Answer Correct ?    7 Yes 0 No

which header file contains main() function in c?..

Answer / 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

which header file contains main() function in c?..

Answer / mnr

header files does not contain main function.header files contains only input output functions and etc....
main is used for a indication of starting program.header files are checked before main execution.those are preprocessors.

Is This Answer Correct ?    2 Yes 0 No

which header file contains main() function in c?..

Answer / 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

More C Interview Questions

Which is not valid in C? 1) class aClass{public:int x;} 2) /* A comment */ 3) char x=12;

7 Answers  


Why do we use namespace feature?

0 Answers  


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?

0 Answers   KPIT,


Write a program for the following series: 1*3*5-2*4*6+3*5*7-4*6*8+.................up to nterms

5 Answers   Convex Digital,


Are the variables argc and argv are local to main?

0 Answers   TISL,


How can I read a directory in a c program?

1 Answers   CSC,


why do we use pointer instead directly acessing the data?

2 Answers  


how to find sum of 5 digits in C?

4 Answers  


What is #define in c?

0 Answers  


which of the function operator cannot be over loaded a) <= b)?: c)== d)*

10 Answers   Cisco, CTS, Google, HCL, HP,


main() { int i = 1; int num[] = {1,2,3,4}; num[i] = i++; printf("%d", num[i]); } what will be the output? }

22 Answers   NDS, TCS,


Suppose I want to write a function that takes a generic pointer as an argument and I want to simulate passing it by reference. Can I give the formal parameter type void **, and do something like this? void f(void **); double *dp; f((void **)&dp);

1 Answers  


Categories