Test the length of long double.
This commit is contained in:
@@ -6,7 +6,8 @@ int main() {
|
||||
int int_length = sizeof(b);
|
||||
int long_length = sizeof(long);
|
||||
int char_length = sizeof (char) ;
|
||||
printf("short=%d, int=%d, long=%d, char=%d\n", short_length,
|
||||
int_length, long_length, char_length);
|
||||
int longdouble_length = sizeof(long double);
|
||||
printf("short=%d, int=%d, long=%d, char=%d long double=%d\n", short_length,
|
||||
int_length, long_length, char_length, longdouble_length);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user