if you do not used main function in c program when errors are accrued
The main function defines the entry point of an application in C.
All C++ programs require an entry point and the main function provides that entry point.
in c main function initailly called by operating system.
A main function must be present in every C program.
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).
Because if you donot use main function in c program, the compiler willnot execute the program.C compiler starts execution from main function itself.
Yes
You can't. If you have no main function, then there is no entry point to your code and it cannot be executed. Code without a main function is essentially a library. In MS Windows, GUI mode, you don't have to have main function. (WinMain is used instead).
yes
Every C plus plus program that is a main program must have the function 'main'.
main() is the function from where the execution starts.
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