fork(2) download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. printf("Char: %d bytes\n", sizeof(char));
  6. printf("Int: %d bytes\n", sizeof(int));
  7. printf("Float: %d bytes\n", sizeof(float));
  8. printf("Double: %d bytes\n", sizeof(double));
  9.  
  10. return 0;
  11. }
Success #stdin #stdout 0s 2160KB
stdin
Standard input is empty
stdout
Char: 1 bytes
Int: 4 bytes
Float: 4 bytes
Double: 8 bytes