468,513 Members | 1,597 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,513 developers. It's quick & easy.

I Need Programs For Insertion And Deletion In Linked List And In Array

Plz If Anyone Can Tell Me Insertion And Deletion In Linked List And In Array Then Reply Here There Programs. Even Reply Any One Program Either For Linked List And Either For Array.
Sep 2 '06 #1
2 4293
Banfa
9,056 Expert Mod 8TB
Why?

How about you make an attempt yourself and we will help debug it.
Sep 2 '06 #2
Hey i give a clue.. u give a try urself.
consider
ptr [ current node after which u want to insert or delete]
ptrnew [ is the node to be inserted/deleted]

Insertion:
ptrnew->next = ptr->next;
ptr->next = &ptrnew;

deletion:

ptr->next = ptrnew->next;
free(ptrnew);

try with this clue.., :D
Sep 4 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by John | last post: by
5 posts views Thread by John N. | last post: by
21 posts views Thread by Johan Tibell | last post: by
6 posts views Thread by Julia | last post: by
1 post views Thread by satan | last post: by
7 posts views Thread by satan | last post: by
6 posts views Thread by naknak | last post: by
6 posts views Thread by barcaroller | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.