I am working on a Binary search tree.
So,here is the structure used for representing the node:
typedef struct TreeNode
{
int num;
struct TreeNode *left,*right;
}TREENODE;
To insert a node in the tree I have the following method signatire
void InsertNode(TREENODE **root,int data);
In the above method why do we require double pointer.We can use a single pointer!
Are we using double pointer to avoid duplication?