SyntaxFix
Write A Post
Hire A Developer
Questions
Clearly a Cell cannot contain another cell as it becomes a never-ending recursion.
However a Cell CAN contain a pointer to another cell.
typedef struct Cell { bool isParent; struct Cell* child; } Cell;