Basics for embedded systems:
C program:
Structure of C program:
Global variables are those variables declared globally in the sense before a main function.After the main fuction the program consists of sub programs.
There are keywords used for performing specific operation.
eg:auto,break,case,double,int,char,const,signed,unsigned,void,etc;..
Data types:
type size
char 1byte
int 2bytes
float 4bytes
double 8bytes
There are also modifiers,compilers,constants,operators,relational operators,statements,break statements,switch and case statements any many more.
C program:
Structure of C program:
- include files
- global variables and function declaration
- main function
- function and program.
Global variables are those variables declared globally in the sense before a main function.After the main fuction the program consists of sub programs.
There are keywords used for performing specific operation.
eg:auto,break,case,double,int,char,const,signed,unsigned,void,etc;..
Data types:
- Primary/primitive data types:
- Integer
- char
- float
- void
- Array
- pointer
- structure
- union
- enum
- type def
type size
char 1byte
int 2bytes
float 4bytes
double 8bytes
There are also modifiers,compilers,constants,operators,relational operators,statements,break statements,switch and case statements any many more.