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.  
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
Data type       Number of bytes
-------------------------------
char             1
short int        2