The code is not giving any output , Can you help me out

My code is - https://ide.codingblocks.com/s/392092

Hello @sukritbansal01 you are doing question to insert in the circular linked list?

Hello @sukritbansal01 here is the corrected code:
https://ide.codingblocks.com/s/392157
if you have any doubt you can ask here:
Happy Learning!!

What was the error in my code ?

Hello @sukritbansal01 see the code which i have added in the you insert.
the problem was there when the head was null initially.
you have to handle that case.

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.