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 : %lu : %p \n", sizeof(a) , &a );
  11. printf("char b : %lu : %p \n", sizeof(b) , &b );
  12. printf("int c : %lu : %p \n", sizeof(c) , &c );
  13. printf("char d : %lu : %p \n", sizeof(d) , &d );
  14. printf("double e : %lu : %p \n", sizeof(e) , &e );
  15.  
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0.01s 5268KB
stdin
Standard input is empty
stdout
char   a : 1 : 0x7fff02357609 
char   b : 1 : 0x7fff0235760a 
int    c : 4 : 0x7fff0235760c 
char   d : 1 : 0x7fff0235760b 
double e : 8 : 0x7fff02357610