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