Two or more data types in declaration specifiers error

You have to put ; behind the struct declaration:

struct tnode
{
    int data;

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

Leave a Comment