answersLogoWhite

0

Why c program starts from main?

User Avatar

Anonymous

13y ago
Updated: 8/19/2019

The c program starts with 'main' function because it's compiler is designed that way. so during the compile time, the compiler looks for main function and through that it binds all the other user defined functions.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Where does the compilation of c program starts?

After main()


Can you have two mains in a c program?

No you can't. main() is the entry point of a C program where execution starts. Only a single main() can exist in a C program. A program with 2 mains wil not even compile successfully.


Where does the main function starts and end in c program?

The entry point of a C program is the main function.The function signature might be like one of these:1. int main (void)2. int main (int argc, char *argv[])


Can a C program be written without main?

Yes. Windows GUI application are the tipical examples, their execution starts with 'WinMain', not 'main'


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.


What is the meaning of statement missing in function main in c language?

Every C program must have a function, named main(), which is where the program starts execution. If there is no function main(), the computer does not know where to start running the program. The function main() must also do something; if it is just empty, some smarter compilers will note that there is nothing for the program to do, and will give this sort of error message to indicate that you forgot to tell the program what to do.


What must every c program have?

A main function must be present in every C program.


Where does c language program begin execution?

The execution of the program starts with function main, wherever it is in the source.


Where do we write main function in a c program?

Into the source program.


What is a main course that starts with an c?

chemistry


Can a C program be written without main METHOD?

Every program requires an entry point. Main() provides the entry point in C.


Where void main is called in c?

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