fork download
  1. #include <stdio.h>
  2. typedef struct{
  3.  
  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. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 5268KB
stdin
Standard input is empty
stdout
x:4,0x7ffc35348f10
y:1,0x7ffc35348f14
z:8,0x7ffc35348f18