C programming Linked Lists delete node at position N

前端 未结 5 535
猫巷女王i
猫巷女王i 2020-12-18 08:16

EDIT: Figured out the problem. Also if you found this through google or another search engine here is where I went wrong and how to fix it.

My delet

5条回答
  •  囚心锁ツ
    2020-12-18 08:46

    Figured out your for loop isn't reaching the desired position you wanted. Better use equal to sign for the constraint it will work. e.g.

    for (i=1;i<=position-1;i++)
    {
    
    }
    

提交回复
热议问题