471,047 Members | 1,197 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,047 software developers and data experts.

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 4342
Banfa
9,065 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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.