fork download
  1. #include <stdio.h>
  2.  
  3.  
  4. struct Op
  5. {
  6. const char *name;
  7. struct Op *parent;
  8. struct Op *children;
  9. };
  10.  
  11. static struct Op op_subops[]; // fwd ref to children of ops
  12.  
  13. static struct Op ops[128] = {
  14. {"op",0,&op_subops[0]}
  15. };
  16.  
  17. static struct Op op_subops[4] = {
  18. {"subop1",&ops[1],0},
  19. {"subop2",&ops[1],0}
  20. };
  21.  
  22. int main(void) {
  23. // your code goes here
  24. return 0;
  25. }
  26.  
Success #stdin #stdout 0s 2164KB
stdin
Standard input is empty
stdout
Standard output is empty