Computer Science, asked by irum5, 2 months ago

write a program to insert a new node at the specified location of linked list​

Answers

Answered by MizBroken
4

Explanation:

Algorithm for C Program for inserting at the nth node of the Singly Linked List:-

  • STEP 1: IF ptr = NULL. Write Overflow. Goto STEP 12. End Of IF.
  • STEP 2: SET new_node =ptr.
  • STEP 3: new_node → data.
  • STEP 4: SET temp = head.
  • STEP 5: SET I = 0.
  • STEP 6: REPEAT STEP 5 AND 6 UNTIL I.
  • STEP 7: temp = temp → next.
  • STEP 8: IF temp = NULL.

✪============♡============✿

 \huge \pink{✿} \red {C} \green {u} \blue {t} \orange {e}  \pink {/} \red {Q} \blue {u} \pink {e} \red {e} \green {n} \pink {♡}

Answered by ITZSBLACKDIAMONDDBU
0

Answer:

¥ØỮŘ ΔŇŞŴ€Ř IN THE ATTACHMENT

н๏pε ¡т нεℓpε∂ ყ๏น

Attachments:
Similar questions