C program structure

C is a structured an procedural programming language. So we should write C program in structured way.

Structure :

Inclusion Header files (e.g.  #include<stdio.h> )

Defining Macro (e.g. #define PI 22/7)

Declaring gl0bal variables / functions and defining

main(){

statements ;

statements ;

statements ;

}

Basic C program for printing value:

 

 

%d bloggers like this: