That's up to you, but the execution of the program begins with function main.
The execution of the program starts with function main, wherever it is in the source.
Actually, it is:int main (void)orint main (int, char **)the point where the execution of the program begins
Every C program has a main() function.
Into the source program.
A main function must be present in every C program.
if you do not used main function in c program when errors are accrued
the main() function,the#include Directive, the variable definition. function prototype, program statements, the function definition,program comments and braces are the components of program in C++
Whatever the programmer wants it to be.
It is not possible. In C, any program must have at least one function to be able to compile and execute properly: the function main()
Every C plus plus program that is a main program must have the function 'main'.
In C and C++, as well as in many (all?) languages, a function can be called from more than one place in a program. That's the purpose of functions - to encapsulate pieces of code that are needed in more than one place in the program.
Basic structure of a C program is /* Documentation section */ /* Link section */ /* Definition section */ /* Global declaretion section */ /* Function section */ (return type) (function name) (arguments...) void main() { Declaration part Executable part (statements) } /* Sub-program section */ (return type) (function name 1) (arguments...) (return type) (function name 2) (arguments...) . . . (return type) (function name n) (arguments...) Basic structure of a C program is /* Documentation section */ /* Link section */ /* Definition section */ /* Global declaretion section */ /* Function section */ (return type) (function name) (arguments...) void main() { Declaration part Executable part (statements) } /* Sub-program section */ (return type) (function name 1) (arguments...) (return type) (function name 2) (arguments...) . . . (return type) (function name n) (arguments...)