show segement error
My code does not give any output
u were changing k and each step then sending k as zero again it was an infinite calling of functions and also going beyond the scope of the list
plus u were sending the the size of the list to the function and not k
also changed names of the pointers for better understanding