fork download
  1. #include <stdio.h>
  2.  
  3. typedef struct {
  4. int x;
  5. int y;
  6. } point;
  7.  
  8. static void push(point *pt)
  9. {
  10. printf("Pushing point (%d, %d)\n", pt->x, pt->y);
  11. }
  12.  
  13. int main()
  14. {
  15. push(&(point){ 42, 1337 });
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
Pushing point (42, 1337)