Ngày tải lên :
17/03/2014, 13:20
... might have written unsigned
short int. Listing 3. 3 is a replay of Listing 3. 2, using the type definition USHORT rather than
unsigned short int.
Listing 3. 3. A demonstration of typedef.
1: // ... to 32 ,767
unsigned long
int
4 bytes 0 to 4,294,967,295
long int
4 bytes -2,147,4 83, 648 to 2,147,4 83, 647
int (16 bit)
2 bytes -32 ,768 to 32 ,767
int (32 bit)
4 bytes -2,147,4 83, 648 to 2,147,4 83, 647
unsigned ... actually valued at 53, much as the letter `a' is valued at 97.
Listing 3. 6. Printing characters based on numbers
1: #include <iostream.h>
2: int main()
3: {
4: for (int i = 32 ; i<128;...