3. What are five rules that you know are always true when allocating size for variables?
In memory usage
char is always represented by 1 byte
unsigned int is the same size as int
In memory usage and range
short is always less than or equal to int
int is always less than or equal to long int
long int is always less than or equal to long long int (C99)
float is less than or equal to double
double is less than or equal to long double (C99)
No comments:
Post a Comment