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. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
char a :1 : 0x7ffceef46aa9
char b :1 : 0x7ffceef46aaa
int  c :4 : 0x7ffceef46aac
char d :1 : 0x7ffceef46aab
double e :8 : 0x7ffceef46ab0