struct tnode
{
int data;
struct tnode* left;
struct tnode* right;
};
struct tnode*talloc(int data)
{
struct tnode*p=(struct tnode*) malloc(sizeof(struct tnode))
if (p!=NULL)
{
p->data=data;
p->next=NULL;
p->right=NULL;
}
return p;
}
int main(){}
I am getting a [error: 'NULL' undeclared] error, Any help would be greatly appreciated.