write a program to insert a new node at the specified location of linked list
Answers
Answered by
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.
✪============♡============✿
Answered by
0
Answer:
¥ØỮŘ ΔŇŞŴ€Ř IN THE ATTACHMENT
н๏pε ¡т нεℓpε∂ ყ๏น
Attachments:
Similar questions