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. {
  11. Coordinate me = { 0 };
  12.  
  13. Coordinate *next_me = &me;
  14.  
  15. next_me->x +=1;
  16. next_me->y +=2;
  17. next_me->z +=3;
  18.  
  19. printf("x : %d\n", me.x);
  20. printf("y : %d\n", me.y);
  21. printf("z : %d\n", me.z);
  22. return 0;
  23. }
  24.  
Success #stdin #stdout 0.01s 5324KB
stdin
Standard input is empty
stdout
x : 1
y : 2
z : 3