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


Please Help Members By Posting Answers For Below Questions

Explain about block scope in c?

657


Explain the properties of union.

607


What are formal parameters?

652


Can you think of a logic behind the game minesweeper.

2004


regarding pointers concept

1564






Why can’t we compare structures?

803


What are the 5 types of inheritance in c ++?

574


Why is this loop always executing once?

613


Write a progarm to find the length of string using switch case?

1603


Write a function that will take in a phone number and output all possible alphabetical combinations

592


What is #define used for in c?

609


Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.

696


The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration

624


Explain how do you declare an array that will hold more than 64kb of data?

892


Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer

3837