parent
44d6e2f076
commit
f784d89490
|
@ -9,5 +9,21 @@ int main(int argc, char **argv) {
|
|||
printf("Size of long: %lu bytes\n", sizeof(long));
|
||||
printf("Size of long int: %lu bytes\n", sizeof(long int));
|
||||
printf("Size of long long: %lu bytes\n", sizeof(long long));
|
||||
printf("Size of float: %lu bytes\n", sizeof(float));
|
||||
printf("Size of double: %lu bytes\n", sizeof(double));
|
||||
printf("Size of long double: %lu bytes\n", sizeof(long double));
|
||||
|
||||
/*
|
||||
* Output in linux x64
|
||||
* Size of char: 1 bytes
|
||||
* Size of short: 2 bytes
|
||||
* Size of int: 4 bytes
|
||||
* Size of long: 8 bytes
|
||||
* Size of long int: 8 bytes
|
||||
* Size of long long: 8 bytes
|
||||
* Size of float: 4 bytes
|
||||
* Size of double: 8 bytes
|
||||
* Size of long double: 16 bytes
|
||||
*/
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue