if i have a root in the signature of a function what has
int value
node* next
in it
can i use func( node *root) here in order to change the value integer
or func( node **root)
??
Printable View
if i have a root in the signature of a function what has
int value
node* next
in it
can i use func( node *root) here in order to change the value integer
or func( node **root)
??
I wonder, how it came that having more than 1000 posts you still cannot write a questing to be understand by others?
if you have a struct
to change a value enough to pass pointer to structCode:struct node
{
int value;
struct node* next;
};
void func(struct node* current);
but it changes the value of the parameter
we need **
i know that we cant change the parameter thats why we use
** root
so we use it when we what to change the address of the root