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
- headerfile
- global variable
- main()-function
- statement
- 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
Post a Comment