My code does not give any output

show segement error


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

hey @jatinkumarjk2001 if your doubt is solved, please mark it as resolved