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