I am trying out some basic datastructure stuff in C. And I am coming back to C after a long time. Here is my simple struct:
typedef struct
{
int data;
LLNode *next; //Error: unknown type name 'LLNode'
}LLNode;
But it gives a compilation error as shown above. Is it because while compiling struct compiler is not aware of existence of LLNode? That means I must be first declaring LLNode before struct. Is it like that? If yes how I am supposed to do it?