This is a draft cheat sheet. It is a work in progress and is not finished yet.
Basic Data Types
|
Positive and negative whole numbers |
|
Positive whole numbers |
|
ASCII characters |
|
Decimal numbers |
|
Double-precision decimal numbers |
Variable Deceleration & Initialization
|
Declare an integer called x
|
|
Declare three floats, x
, y
and z
|
|
Declare a character called c
and initialize it to the letter 'A' |
unsigned int x = 10, y, z = 5;
|
Declare three unsigned integers, x
, y
, and z
, and initialize x
to 10
and z
to 5
|
|
|
|
|
|