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. {
  11. data me;
  12.  
  13. printf("x : %lu, %p\n", sizeof(me.x), &me.x );
  14. printf("y : %lu, %p\n", sizeof(me.y), &me.y );
  15. printf("z : %lu, %p\n", sizeof(me.z), &me.z );
  16.  
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
x : 4, 0x7ffd93c69fe0
y : 1, 0x7ffd93c69fe4
z : 8, 0x7ffd93c69fe8