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 :%zu: %p\n", sizeof(a), &a);
  10. printf("char :%zu: %p\n", sizeof(b), &b);
  11. printf("int :%zu: %p\n", sizeof(c), &c);
  12. printf("char :%zu: %p\n", sizeof(d), &d);
  13. printf("double :%zu :%p\n", sizeof(e), &e);
  14.  
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 592KB
stdin
Standard input is empty
stdout
char :1: 0x7ffd0f0194d9
char :1: 0x7ffd0f0194da
int :4: 0x7ffd0f0194dc
char :1: 0x7ffd0f0194db
double :8 :0x7ffd0f0194e0