!! size may vary depending on the os.
Take up 4 bytes of memory (32 bit).
Negative and positive.
int number = 9;
int number1, number2;
Also take up 4 bytes.
Double the positive value an integer can hold. But remove the negative possibilities
It is a qualifier. Can also be used on a char
Take 1 byte (8 bits)
The Ascii standard map the positive value of a char to a symbol.
Take up 4 bytes of memory (32 bits).
Due to this size limitation, they can be unprecise.
Take up 8 bytes (64 bits).
Better than float when precision is needed.
Modify the size of an int.
long also apply to double.
short int x;
// can be simplify
short x;
long double y;
Void is a type but NOT a datatype. Meaning we can’t create a variable of type void.
Not default in C, must be included.
#include <stdbool.h>
Not directly included in C.
// Character array
char str1[] = "Hello";
// string literal
const char* str3 = "This is a string literal"; // cannot be modified