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.  
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 5272KB
stdin
Standard input is empty
stdout
char a : 1 : 0x7ffd75d34399
char b : 1: 0x7ffd75d3439a
int c : 4: 0x7ffd75d3439c
char d : 1: 0x7ffd75d3439b
double e : 8: 0x7ffd75d343a0