fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. char a;
  6. char b;
  7. int c;
  8. char d;
  9. double e;
  10.  
  11. printf("char a:%lu:%p\n",sizeof(a),&a);
  12. printf("char b:%lu:%p\n",sizeof(b),&b);
  13. printf("int c:%lu:%p\n",sizeof(c),&c);
  14. printf("char d:%lu:%p\n",sizeof(d),&d);
  15. printf("double e:%lu:%p\n",sizeof(e),&e);
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0s 5292KB
stdin
Standard input is empty
stdout
char a:1:0x7ffecc941229
char b:1:0x7ffecc94122a
int c:4:0x7ffecc94122c
char d:1:0x7ffecc94122b
double e:8:0x7ffecc941230