a3-1
This commit is contained in:
parent
f063d1c519
commit
bb7617ba21
|
@ -0,0 +1,23 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main(void) {
|
||||||
|
int i;
|
||||||
|
long int li;
|
||||||
|
short int si;
|
||||||
|
|
||||||
|
float f;
|
||||||
|
|
||||||
|
double d;
|
||||||
|
long double ld;
|
||||||
|
|
||||||
|
printf("int: %ld\n", sizeof(i));
|
||||||
|
printf("long: %ld\n", sizeof(li));
|
||||||
|
printf("short: %ld\n", sizeof(si));
|
||||||
|
printf("\n");
|
||||||
|
printf("float: %ld\n", sizeof(f));
|
||||||
|
printf("\n");
|
||||||
|
printf("double: %ld\n", sizeof(d));
|
||||||
|
printf("long: %ld\n", sizeof(ld));
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue