The Raspberry Pi has a 32-bit microprocessor.

Name C++ Bytes Range
bool   1 true or false
signed char int8_t 1 -128 to 127
unsigned char uint8_t 1 0 to 255
short int int16_t 2 -32768 to 32767
unsigned short int uint16_t 2 0 to 65535
int int32_t 4 -2147483648 to 2147483647
unsigned int uint32_t 4 0 to 4294967295
long int int32_t 4 -2147483648 to 2147483647
unsigned long int uint32_t 4 0 to 4294967295
long long int64_t 8 −9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
unsigned long long uint64_t 8 0 to 18,446,744,073,709,551,615
float   4 +/- 3.4e +/- 38 (~7 digits)
double   8 +/- 1.7e +/- 308 (~15 digits)
long double   8 +/- 1.7e +/- 308 (~15 digits)
wchar_t   2 or 4 1 wide character

 





USEFUL?
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.

Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.