Chapter 2 Development Environment
13
2.4.1 Size of Types
Types
Size in byte
char, unsigned char
1
short int, unsigned short int, int, unsigned int
2
long int, unsigned long int
4
pointer
4
structure, union
4
2.4.2 Representation Range of Integers
Regarding the representation range of the values of integer types, macros are defined in the
header file <limits.h> as follows.
Macro Name
Contents
CHAR_BIT
number of bits in a byte (the smallest object)
SCHAR_MIN
minimum value of signed char type
SCHAR_MAX
maximum value of signed char type
CHAR_MIN
minimum value of char type
CHAR_MAX
maximum value of char type
UCHAR_MAX
maximum value of unsigned char type
MB_LEN_MAX
number of bytes in a wide character constant
SHRT_MIN
minimum value of short int type
SHRT_MAX
maximum value of short int type
USHRT_MAX
maximum value of unsigned short int type
INT_MIN
minimum value of int type
INT_MAX
maximum value of int type
UINT_MAX
maximum value of unsigned int type
LONG_MIN
minimum value of long int type
LONG_MAX
maximum value of long int type
ULONG_MAX
maximum value of unsigned long int type
Содержание Optimus R
Страница 1: ...Printed on 20 March 2006 C Programming Guide Version 3 04 02 Optimus S Optimus R...
Страница 6: ......
Страница 8: ...2 C Programming Guide For Optimus S R...
Страница 12: ...6 C Programming Guide For Optimus S R The flow is illustrated as shown below...
Страница 23: ...Chapter 2 Development Environment 17 Different types signed unsigned Different types same size...
Страница 24: ...18 C Programming Guide For Optimus S R...
Страница 220: ...214 C Programming Guide For Optimus S R See Also FlashSize free_memory...
Страница 232: ...226 C Programming Guide For Optimus S R 4 11 Implementation defined Limits limits h float h Refer to limit h and float h...
Страница 238: ...232 C Programming Guide For Optimus S R...