Originally Posted by
transgalactic2
thanks
about my second problem
i descovered that if i use only one astrix in the signature and i pass
the pointer instead of &pointer
Yes, that's right. &pointer will work if the prototype included **. But for what you are doing, you don't need & or ** unless you want to declare the struct like this:
Code:
TreeNode g; /* no asterisk, g is a struct */
t(&g); /* address of struct = pointer */
instead of like this:
Code:
TreeNode* g;
g=(TreeNode*)malloc(sizeof(TreeNode));
t(g); /* no &, g is a pointer (to a struct) */