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 += 1;
  17. next_me -> z += 1;
  18.  
  19. printf("x=%d\n",me.x);
  20. printf("y=%d\n",me.y);
  21. printf("z=%d\n",me.z);
  22.  
  23. return 0;
  24. }
  25.  
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
x=1
y=1
z=1