Data Types
Integer
You can specify any byte size to int using:
uint32_t // This is an int that holds 32 bytes (0 to 4294967295)
// or
int32_t // -2147483648 to 2147483647Boolean
#include <stdbool.h>
bool var = true;
// Or we can do:
_Bool y = 1; // True
_Bool n = 0; // False
// Or use preprocessors (have to include stdbool header):
#define true 1
#define false 0
#define yes true
#define no falsesize_t
wchar_t
Example:
char
Escape Characters
Data Type Conversion Functions
Printing Format Strings
Typedef
Now variables can be declared of type counter:
Operators
Example:
Difference between x++ and ++x
Logical Operators
Last updated