c-program-structure





c-basic structure

In basic structure of c program it has a main-function .But in arduino software it has 2 function called setup-function and update-function the code execute from the setup-function
let we see what are the basic structure of a program



For c program the basic structures are
  1. headerfile
  2. global variable
  3. main()-function
  4. statement
  5. user-define function




Example for basic structure of c
#include<stdio.h>     //header file
#include<conio.h>      //header file



int a=2,b=3,c;      //global variable


void main()      // main function start
{

clrscr();

c=a+b;

printf("the a+b=%d",c);

getch();

}      // main function end


youtube tutuorial



Comments

Popular posts from this blog

operators in c program

nested-if

switch-statement