[an error occurred while processing this directive]
|
Minimum Type Limits
Any compiler conforming to the Standard must also respect the following limits with respect to the range of values any particular type may accept. Note that these are lower limits: an implementation is free to exceed any or all of these. Note also that the minimum range for a char is dependent on whether or not a char is considered to be signed or unsigned.
Type Minimum Range
signed char -127 to +127
unsigned char 0 to 255
short int -32767 to +32767
unsigned short int 0 to 65535
int -32767 to +32767
unsigned int 0 to 65535
long int -2147483647 to +2147483647
unsigned long int 0 to 4294967295
Type Minimum Precision
float 6 digits
double 10 digits
long double 10 digits
The Standard also specifies that these limits should be present as preprocessor macros in the header file
E-mail: info@telesys.ru