Every C program has a primary (main) function that must be named main. If your code adheres to the Unicode programming model, you can use the wide-character version of main. The main function serves as the starting point for program execution. It usually controls program execution by directing the calls to other functions in the program. A program usually stops executing at the end of main, although it can terminate at other points in the program for a variety of reasons. At times, perhaps when a certain error is detected, you may want to force the termination of a program.
. All statements that belong to main( ) are enclosed within a pair of braces { } as shown below.
main( ) {
statement One ;
statement Second ;
}
Notes: Any function such as: main( ) is a function. Every function has a pair of parentheses ( )
HYPER ERA PVT.LTD | TERMS & CONDITIONS