fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main (void)
  4. {
  5. printf ("char %d\n", (int) sizeof (char));
  6. printf ("short int %d\n", (int) sizeof (short int));
  7. printf ("int %d\n", (int) sizeof (int));
  8. printf ("long int %d\n", (int) sizeof (long int));
  9. printf ("long long int %d\n", (int) sizeof (long long int));
  10. printf ("float %d\n", (int) sizeof (float));
  11. printf ("double %d\n", (int) sizeof (double));
  12. printf ("long double %d\n", (int) sizeof (long double));
  13. getchar ();
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0.01s 1724KB
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