answersLogoWhite

0

Can you use two main function in c?

User Avatar

Anonymous

12y ago
Updated: 8/20/2019

It is not clear why would you want two functions with the same name. If you simply like the sound of word 'main', you can have one static 'main' function in each source files, but those functions won't be callable from outside.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

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


Can you use two main in C programme?

No. You can only have one main() function in a C or C++ program.Note:If this question means "Will the OS start two threads/processes if I have two public scope 'main' functions in my program?"then the answer is "No, even if you could link such program, which you cannot."


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.