Recursive Reverse a Linked List

my code is not working
here is my code https://ide.codingblocks.com/s/286307

hello @jatinupadhyay786
interchange the position of these two condtions
image

nahi ho raha bhai usse kya farak padta hai?

wait me debug kar ke batata hu

image

tumne head nahi likha that.

ye galat that kyunki agar head==NULL hoga tab pehle conditon ki wajah se run error aayega.
isiliye inka order chnage karne ke liye bola tha