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