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 5280KB
stdin
Standard input is empty
stdout
char a:1:0x7ffc0cbe13b9
char b:1:0x7ffc0cbe13ba
int c:4:0x7ffc0cbe13bc
char d:1:0x7ffc0cbe13bb
double e:8:0x7ffc0cbe13c0