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