fork download
  1. #include <stdio.h>
  2.  
  3. typedef struct{
  4. int x;
  5. char y;
  6. float *z;
  7. }data;
  8.  
  9. int main(void) {
  10. data me;
  11.  
  12. printf("x:%lu,%p\n",sizeof(me.x),&me.x);
  13. printf("y:%lu,%p\n",sizeof(me.y),&me.y);
  14. printf("z:%lu,%p\n",sizeof(me.z),&me.z);
  15.  
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 5312KB
stdin
Standard input is empty
stdout
x:4,0x7ffc647ae920
y:1,0x7ffc647ae924
z:8,0x7ffc647ae928