Introduzione ai Tipi di Dati
Unsigned Integers of 8 bits
A uint8 data type contains all whole numbers from 0 to 255. Uint8’s are mostly used in graphics.
Definizione dei Tipi di Dati
Unsigned Char
Unsigned char is a character datatype where the variable consumes all the 8 bits of the memory. The range of unsigned char data type ranges from 0 to 255.
16-bit Integer
Integer, 16 Bit: Signed Integers ranging from -32768 to +32767. Integer, 16 Bit Unsigned: Unsigned whole or natural numbers ranging from 0 to +65535.
Unsigned Integer
An unsigned integer is a 32-bit datum that encodes a nonnegative integer in the range [0 to 4294967295].
Scelta tra Tipi di Dati
int vs int32_t
If you need a signed integer with exactly 32 bits, then int32_t is preferred. Otherwise, int should be your go-to type for signed integers.