answersLogoWhite

0

Why you use main function in c?

User Avatar

Anonymous

14y ago
Updated: 8/19/2019

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

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

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

Yes


Main function in c?

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


What is the use of return in function in c?

To return the exp. or const to the main fumction.


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 is the use of return function in C programming?

To return the exp. or const to the main fumction.


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


How do you use this function in c programme?

I don't use that function in C programme.


Can you use the float as a return type of the main function in 'C' language?

No, it should be int type or void.


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