General Form of a C Program :
A C program follows a well-defined structure that organizes program components in
a logical and readable manner. This structure helps the compiler interpret the
program correctly and assists programmers in understanding and maintaining the
program.
A typical C program consists of several sections. The documentation section
contains comments that describe the purpose and functionality of the program.
These comments are intended for human readers and are ignored by the compiler.
The link section includes header files using preprocessor directives such as
#include, which allow access to library functions.
A C program follows a well-defined structure that organizes program components in
a logical and readable manner. This structure helps the compiler interpret the
program correctly and assists programmers in understanding and maintaining the
program.
A typical C program consists of several sections. The documentation section
contains comments that describe the purpose and functionality of the program.
These comments are intended for human readers and are ignored by the compiler.
The link section includes header files using preprocessor directives such as
#include, which allow access to library functions.
SYNTAX:
#include <stdio.h>
int main(void)
{
declarations;
executable statements;
return 0;
}
EXAMPLE:
#include<stdio.h>
int main()
{
printf("hello");
return 0;
}
Output:
hello