fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. printf("Data type Number of bytes\n");
  6. printf("-------------------------------\n");
  7. printf("char %d\n",sizeof(char));
  8. printf("short int %d\n",sizeof(short));
  9. printf("int %d\n",sizeof(int));
  10.  
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 5308KB
stdin
Standard input is empty
stdout
Data type       Number of bytes
-------------------------------
char             1
short int        2
int              4