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. printf("char :%lu:%p\n", sizeof(a),&a);
  10. printf("char :%lu:%p\n", sizeof(b),&b);
  11. printf("int :%lu:%p\n", sizeof(c),&c);
  12. printf("char :%lu:%p\n", sizeof(d),&d);
  13. printf("double :%lu:%p\n", sizeof(e),&e);
  14.  
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
char :1:0x7ffe2bf5cda9
char :1:0x7ffe2bf5cdaa
int :4:0x7ffe2bf5cdac
char :1:0x7ffe2bf5cdab
double :8:0x7ffe2bf5cdb0