fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. int a;
  6. double b;
  7. char c;
  8. float d;
  9.  
  10. printf("int : %lu : %p \n",sizeof(a) , &a);
  11. printf("double : %lu : %p \n",sizeof(b) , &b);
  12. printf("char : %lu : %p \n",sizeof(c) , &c);
  13. printf("float : %lu * %p \n",sizeof(d) , &d);
  14.  
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 5312KB
stdin
Standard input is empty
stdout
int    : 4 : 0x7ffe7dc632d8 
double : 8 : 0x7ffe7dc632e0 
char   : 1 : 0x7ffe7dc632d7 
float  : 4 * 0x7ffe7dc632dc