answersLogoWhite

0

Main function in c

Updated: 8/19/2019
User Avatar

Wiki User

9y ago

Best Answer

The main function defines the entry point of an application in C.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

Main in C.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Main function in c
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Who is calling main function in c?

in c main function initailly called by operating system.


What is main function used in c?

if you do not used main function in c program when errors are accrued


What must every c program have?

A main function must be present in every C program.


What is the main function of C?

The main function is the entry point for the application. Each program written in C or C++ will start at the first line in the main function, and cease execution once the main function returns control to the operating system (either via a return keyword in the main function, an exit(3) function call, or by "running off" the end of the main function). A program will not compile if it is missing the main function. Some variants of C++ have an alternate entry point (including those written for Microsoft Windows).


Why you use main function in c?

Because if you donot use main function in c program, the compiler willnot execute the program.C compiler starts execution from main function itself.


Can you use main function as a recursive function in C?

Yes


Is main a predefined function in c?

yes


What is the only function all C plus plus programs must contain?

Every C plus plus program that is a main program must have the function 'main'.


Where void main is called in c?

main() is the function from where the execution starts.


Is c program works without main function?

yes a C program can work without a main() function. Though its not the normal C code that you would be writing on ur gcc or turbo C compiler. for example Linux Source code ... does not have a main() function : for details u can visit: http://samarthonweb.blogspot.com/2009/08/c-programe-with-no-main-function.html


Why is a main function used by Grady Booch in C plus plus?

All C++ programs require an entry point and the main function provides that entry point.


How do you write a programm in c plus plus without using function main?

I don't think its possible. Every C++ program must at least have the main function.