Here is my code to create and display linked list and for some reason it runs infinitely. What is the issue here?
You can copy this in a compiler and see the output for y