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("char a:%zu:%p\n",sizeof(a),&a);
  11. printf("char b:%zu:%p\n",sizeof(b),&b);
  12. printf("int c:%zu:%p\n",sizeof(c),&c);
  13. printf("char d:%zu:%p\n",sizeof(d),&d);
  14. printf("double e:%zu:%p\n",sizeof(e),&e);
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 5340KB
stdin
Standard input is empty
stdout
char a:1:0x7ffe0f339b49
char b:1:0x7ffe0f339b4a
int c:4:0x7ffe0f339b4c
char d:1:0x7ffe0f339b4b
double e:8:0x7ffe0f339b50