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 5288KB
stdin
Standard input is empty
stdout
char   a : 1 : 0x7fff937c95c9 
char   b : 1 : 0x7fff937c95ca 
int    c : 4 : 0x7fff937c95cc 
char   d : 1 : 0x7fff937c95cb 
double e : 8 : 0x7fff937c95d0