answersLogoWhite

0

Main function in c

User Avatar

Anonymous

∙ 11y ago
Updated: 8/19/2019

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

User Avatar

Wiki User

∙ 11y ago
User Avatar

What else can I help you with?

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


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'.


Is main a predefined function in c?

yes


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


Where void main is called in c?

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


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.


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.

Trending Questions
Why do girls lead guys on to the point where they basically know the guy likes them then shuts them down and then says they don't think they lead you on? Do you need a title for a 14ft Jon boat? Why did al qaeda attack the wtc? What describes a situation where a goal of growth is being pursued? What is the population of Tylicz? What is a city in Russia is named after a famous czar? Which federal agency is responsible for setting workplace health and safety standards? If you've had the contraceptive implant fitted a year ago and have had no period since why would it start again practically a year to the day? What is the usual order by which a land form is changed? Why did dan Reeves leave Denver? Why Total variable cost usually inverse S shape? Are you busy in Chinese? What building is the first murder took in The Da Vinci Code? What evidence does zinn provide to indicate that single women were perhaps lured to the factory by attractive wages and and conditions only to see those wages and conditions deteriorate? What are the rules for a Milton Bradley game called India? A man homozygous for the perfect pitch trait marries a women without perfect pitch What is the probability that any of their three children will NOT have perfect pitch? How long does a written warning for speeding stay on your record in Portsmouth NH? What is the connection of American slavery to prejudices against African-descended peoples? Who is the present deputygovernor of reserve bank of India? How deep is lake volta?