fork download
  1. #include <stdio.h>
  2.  
  3. int main (void)
  4. {
  5. printf ("char %i\n", (int) sizeof (char));
  6. printf ("short int %i\n", (int) sizeof (short int));
  7. printf ("int %i\n", (int) sizeof (int));
  8. printf ("long int %i\n", (int) sizeof (long int));
  9. printf ("long long int %i\n", (int) sizeof (long long int));
  10. printf ("float %i\n", (int) sizeof (float));
  11. printf ("double %i\n", (int) sizeof (double));
  12. printf ("long double %i\n", (int) sizeof (long double));
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0.02s 1720KB
stdin
Standard input is empty
stdout
char          1
short int     2
int           4
long int      4
long long int 8
float         4
double        8
long double   12