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