too many types in declaration error in c

You have to put ; behind the struct declaration:
 
struct tnode
{
    int data;

    struct tnode * left;
    struct tnode * right;
}; // <-- here

Comments

Popular posts from this blog

How to solve: Geany tried to access the Unix Domain socket of another instance running as another user. This is a fatal error and Geany will now quit?