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.  
  10. int main(void){
  11.  
  12. coordinate me={1,2};
  13.  
  14. display(me.x,me.y);
  15.  
  16. return 0;
  17. }
  18.  
  19. void display(int x,int y){
  20.  
  21. printf("me(%d,%d)\n",x,y);
  22. }
  23.  
Success #stdin #stdout 0s 5304KB
stdin
Standard input is empty
stdout
me(1,2)