Linked list pass by refrence

i don’t understand why pass by refrence used to reflect the changes in head as head it self is a address

hey @Faizan-Ali-1395131367301898, you are passing a pointer which stores address, when we pass it by value a new pointer is created which will have some garbage address not the actual address that we want to send. Hence we used call by reference,