This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:c4eng:fall2023:projects:dtr0 [2023/09/13 12:39] – [PRINTF FORMAT SPECIFIERS] jparrish | notes:c4eng:fall2023:projects:dtr0 [2023/09/14 00:42] (current) – [DATA TYPES IN C] lbond1 | ||
---|---|---|---|
Line 42: | Line 42: | ||
**Unsigned int**- This type of data occupies 2 or 4 bytes of memory (16 or 32 bits) depending on the compiler and allows expressing a maximum of 65,536 at 2 bytes or 4, | **Unsigned int**- This type of data occupies 2 or 4 bytes of memory (16 or 32 bits) depending on the compiler and allows expressing a maximum of 65,536 at 2 bytes or 4, | ||
- | **Signed long int**- This type of data occupies 4 or 8 bytes (32 or 64 bits) depending on the compiler and allows expressing a maximum of 4, | + | **Signed long int**- This type of data occupies 4 or 8 bytes (32 or 64 bits) depending on the compiler and allows expressing a maximum of 4, |
- | **Unsigned | + | **Unsigned long int**- This type of data occupies 4 or 8 bytes (32 or 64 bits) depending on the compiler and allows expressing a maximum of 4,294,967,295 at 4 bytes or 18, |
+ | **Signed long long int**- This type of data occupies 2,4 or 8 bytes of memory (16,32 or 64 bits) depending on the compiler and allows expressing a maximum of 65,536 at 2 bytes, 4, | ||
+ | |||
+ | |||
+ | **Unsigned long long int**- This type of data occupies 2,4 or 8 bytes of memory (16,32 or 64 bits) depending on the compiler and allows expressing a maximum of 65,536 at 2 bytes, 4, | ||
+ | Due to the limitations of our Pi's and compiler, the max bit count should be 32, this will mean that un/signed long long and un/signed long types will share values | ||
========COMPILE CODE========= | ========COMPILE CODE========= |