' assignment makes pointer from integer without a cast "
I am getting this error " assignment makes pointer from integer without a cast" for this line.
Declaration for addtree is as follows
and Tree_ptr is
Tree_ptr addtree(Tree_ptr ,char *);
typedef struct tree_node
struct tree_node *left;
struct tree_node *right;
typedef struct tree_node *Tree_ptr;
and Declaration for root is
The whole point is to return a pointer to a structure tree_node. I am just trying to learn typedef. Could some one please explain what is wrong with this declaration?