This is my code for linkedList but it is not printing the list only one time can you correct the code
Linked list printing
I did it but it’s not printing after the middle function.
okay yes it’s printing now…can you just explain a bit i mean i watched in video lecture but a bit more clear i mean when to pass by reference and when to not??
hi @akshat42bajpai, when you want that your linked list should change it should be passed by ref else value, in printing you dont need to change your linkedlist
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.