(node*head ) and (node *&head ) ka mutlab h pzz tell me
Circular linked list 2
hello @Aarti.com
first consider this example->
f(int x) , f(int &x) whats the difference ?
in first case variable is passed by value i.e sent value will be copied to this new variable x.
in second case we are passing variable as reference i.e same variable will passed , means whatevr changes we will make in x will be reflected in original variable.
same is the case with
in first case pointer is passed as variable where in second case it is passed as refernce