Hi,all,
I saw a table C table types showed in following .
What did items in the representation mean, and the different between them.In my opinin,variables are binary stored in memory.
|
TYPE |
Size |
Representation |
Minimum |
Maximum |
|
char,signed char |
8 |
ASCII |
-128 |
127 |
|
unsigned char,bool |
8 |
ASCII |
0 |
255 |
|
short, signed short |
16 |
2's complement |
-32768 |
32767 |
|
unsigned short |
16 |
Binary |
0 |
65535 |
|
int, signed int |
16 |
2's complement |
-32768 |
32767 |
|
unsigned int |
16 |
Binary |
0 |
65535 |
|
long, signed long |
32 |
2's complement |
-2147483648 |
2147483647 |
|
unsigned long |
32 |
Binary |
0 |
4294967295 |
|
long long,signed long long |
64 |
2's complement |
-9223372236854775808 |
9223372236854775807 |
|
unsigned long long |
64 |
Binary |
0 |
184467440737095551615 |
|
enum |
16 |
2's complement |
-32768 |
32767 |
|
float |
32 |
IEEE 32-bit |
1.175495E-38 |
3.402823E+38 |
|
double |
32 |
IEEE 33-bit |
1.175495E-38 |
3.402823E+38 |
|
long double |
32 |
IEEE 34-bit |
1.175495E-38 |
3.402823E+38 |
|
pointers,references, pointer to data members |
16 |
Binary |
0 |
0xFFFF |
|
MSP430x large-data model pointers,references,pointer to data members |
20 |
Binary |
0 |
0xFFFFF |
|
MSP430 function pointers |
16 |
Binary |
0 |
0xFFFF |
|
MSP430X function pointers |
20 |
Binary |
0 |
0xFFFFF |