i think as the compiler bind all the functions and source code starting from main hence all that make the compiler directed to execute it from the very same point
Because if you donot use main function in c program, the compiler willnot execute the program.C compiler starts execution from main function itself.
No; the execution does.
It start with function - main()
It's called 'main' by tradition; this feature lets the linker to know, where to start the execution.
The execution of the program starts with function main, wherever it is in the source.
There should be some starting point know in order to anything so C look for main Because where to start its execution(compilation). by santhosh bairam
main() is the function from where the execution starts.
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.
It starts with function 'main'.
You don't have, it's only the program-execution which begins with the main function, but it doesn't have to be the first function in the source-file.
That's up to you, but the execution of the program begins with function main.
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).