Feed Headline Animator

What is the main ( ) function in C program

The main( ) function:-

The main( ) function indicates the beginning of a C program. This function must be included in every C program. When a C program executed, the control goes to main ( ) function. It is the entry point of all C programs.
The statements within this function are the main body of the C program. If main ( ) function is not included, the program is not compiled and an error massage is generated.
The syntax of the main ( ) function is:
Void main (void)
{
Program statements……
}
The main ( ) function may take one or more values. Similarly, it may also output one value.


Posted by: Wasim Javed

No comments:

Post a Comment