This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
notes:cprog:spring2024:projects:dtr0 [2024/02/14 07:35] – [REPRESENTATION: BASE 16 (HEXADECIMAL)] very basic knowledge hcopp1 | notes:cprog:spring2024:projects:dtr0 [2024/02/14 20:39] (current) – [INTEGER VALUES] cgrant9 | ||
---|---|---|---|
Line 14: | Line 14: | ||
In this project we are looking at 10 different types of data values, that are all variations of integers with different byte sizes: | In this project we are looking at 10 different types of data values, that are all variations of integers with different byte sizes: | ||
- | < | + | < |
- | unsigned long long int --- 16 bytes | + | unsigned long long int --- 8 bytes |
signed long int --- 8 bytes | signed long int --- 8 bytes | ||
unsigned long int --- 8 bytes | unsigned long int --- 8 bytes | ||
Line 24: | Line 24: | ||
signed char --- 1 byte | signed char --- 1 byte | ||
unsigned char --- 1 byte</ | unsigned char --- 1 byte</ | ||
- | As you can see they follow the pattern of long doubling, and half, halving, the exception is character, which is essentially a half half integer, in fact it would be abbreviated as either hhd or hhu depending on its signing. | + | |