This is a draft cheat sheet. It is a work in progress and is not finished yet.
Int Datatypes
Variable name |
Range |
Size (bytes) |
int8_t |
-128 to 127 |
1 |
uint8_t |
0 to 255 |
1 |
int16_t |
-32768 to 32767 |
2 |
uint16_t |
0 to 65535 |
2 |
int32_t |
-2147483648 to 2147483647 |
4 |
uint32_t |
0 to 4294967295 |
4 |
int64_t |
-9.2 * 1018 to 9.2 * 1018 |
8 |
uint64_t |
0 to 1.8 * 1019 |
8 |
Pointers
& |
Gets RAM adress of Variable(to save into pointer) |
* |
Dereferences pointer(returns it´s content) or defines a variable to be a pointer |
|
|
Float datatypes
Type name |
Size (bytes) |
Precision |
Range |
float |
4 |
~6-7 digits |
~1.2 ×10-38 to ~3.4 ×1038 |
long |
8 |
~15-16 digits |
~2.3 ×10-308 to ~1.7 ×10308 |
Bitwise Operators
& |
Bitwise AND |
| |
Bitwise OR |
^ |
Bitwise XOR |
~ |
Bitwise NOT |
<< |
Shift left (adding zeroes to the right) |
>> |
Shift right (adding zeroes to the left) |
|