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