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