Microcontroller - Peresentation 3
Microcontroller - Peresentation 3
Microcontroller - Peresentation 3
a a b; , c a b;
switch (var) {
case 1:
doThing1();
break; case 2:
doThing2();
break; }
C language review
x 0 xFF ; //Hexadecimal
C language review
C program basics
C language review
A sample program
C Review:
Variable Declaration:
Type Size (Bits) Range
bit 1 0,1
char 8 -128 to 127
unsigned char 8 0 to 255
signed char 8 -128 to 127
int 16 -32768 to 32767
short int 16 -32768 to 32767
unsigned int 16 0 to 65535
signed int 16 -32768 to 32767
C Review:
Variable Declaration:
Type Size (Bits) Range
long int 32 -2147483648 to 2147483647
unsigned long int 32 0 to 4294967295
signed long int 32 -2147483648 to 2147483647
float 32 ±1.175e-38 to ±3.402e38
double 32 ±1.175e-38 to ±3.402e38