Every C program begins with these statements:
#include < stdio. H >
int main()
The #include is necessary at the beginning of every program because it includes the Standard Input/ Output library in your program so that any input and output functions within the program can be performed.
The next statement is the main function “int main()”which indicates that the main body of the code is starting. When the execution of a program starts it starts from the line following the main function. The body of the code is enclosed in { } brackets and the code within these brackets is executed next and the execution continues according to the code in your program and performs any input, output or other functions.
#include < stdio. H >
int main()
The #include is necessary at the beginning of every program because it includes the Standard Input/ Output library in your program so that any input and output functions within the program can be performed.
The next statement is the main function “int main()”which indicates that the main body of the code is starting. When the execution of a program starts it starts from the line following the main function. The body of the code is enclosed in { } brackets and the code within these brackets is executed next and the execution continues according to the code in your program and performs any input, output or other functions.