fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(void) {
  5. int a,b,c;
  6. a = sizeof(int);
  7. b = sizeof(double);
  8. c = sizeof(char);
  9. printf("int型のサイズ=%d\n",a);
  10. printf("double型のサイズ=%d\n",b);
  11. printf("char型のサイズ=%d\n",c);
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 5352KB
stdin
Standard input is empty
stdout
int型のサイズ=4
double型のサイズ=8
char型のサイズ=1