GENERAL C CODING
Notes and Examples

Reference Subject Description
Data Types What variables are made of
Math Operators The Operators that are used to modify and compute variables
Relational Operators The Operators that are used to test
Example Subject Description
Conditional Compilation Use variables to control complicated compiling tasks
Functions If it's not in a function, you're making life too hard!
Variables and Memory control When and how to define and use RAM and ROM (Constant) variables, see Data Types
Math Proper care and feeding of your equations using the Math Operators
FOR( ) Statement Iterative loops
IF( ) Statement General program control using the Relational Operators
PRINTF( ), SPRINTF( ),
GETC( ) and PUTC( ) Statements
Formatted printing to standard output, usually the serial port.
Includes a note on interrupt level character handling.
SWITCH( ) Statement Allows easy testing of multiple values
 

Color Coded C

Pre-Processors #IF
#ENDIF
Type Declarators INT1
CHAR
INT16
INT32
FLOAT
Keywords VOID
Statements IF
ELSE
WHILE
DO
BREAK
FOR
RETURN
Code temp=5;
Comments //comment

Any questions or comments?
 This page last updated on August 28, 2011