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;
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;