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