fork download
  1. #include <stdio.h>
  2. typedef struct{
  3. int x;
  4. int y;
  5. int z;
  6. }coordinate;
  7.  
  8. int main(void) {
  9. coordinate me = {0};
  10. coordinate*shadow = &me;
  11. shadow->x = 1;
  12. shadow->y = 2;
  13. shadow->z = 3;
  14. printf("%d",me.x);
  15. printf("%d",me.y);
  16. printf("%d",me.z);
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0.01s 5316KB
stdin
Standard input is empty
stdout
123