Recursive struct
c, recursive-datastructures, struct
Solution
To build recursive structs you do not need `typedef`.
You will have to convert the struct object into a `struct pointer` object.
like this:
struct teste{
int data;
int data2;
struct teste *to_teste;
};
Problem
Do I need to use `typedef` in order to build recursive structs? I tried to use the following code without success: ``` struct teste { int data; int data2; struct teste to_teste; }; ```