in linked lists when we use
node* head
and
when we use node* &head?
Linked lists doubt
You can refer this link
it is same like other variable pass by reference if u pass using & in a function then value change in function reflect in the main
in linked lists when we use
node* head
and
when we use node* &head?
You can refer this link
it is same like other variable pass by reference if u pass using & in a function then value change in function reflect in the main