Why my Display function is printing garbage value

I am trying to implement a circular LL using class. while running the code creation menu is working fine but I don’t know why the display menu is printing garbage values.

@Souryaman hey check ki apki linked list sahi bn rhi hai ki nhi and agar mistake nhi mil rhi usme to please send the code ,I will check.

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.