<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>data strucure | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/data-strucure/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Sat, 09 Jun 2012 11:15:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>C program to implement linked list</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/data-structures-c/c-program-to-implement-linked-list/</link>
					<comments>https://studentprojects.in/software-development/c-tutorials/c/data-structures-c/c-program-to-implement-linked-list/#comments</comments>
		
		<dc:creator><![CDATA[Drithi]]></dc:creator>
		<pubDate>Thu, 07 Jun 2012 09:09:38 +0000</pubDate>
				<category><![CDATA[Data Structures]]></category>
		<category><![CDATA[c program]]></category>
		<category><![CDATA[linked list]]></category>
		<category><![CDATA[data strucure]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=3147</guid>

					<description><![CDATA[<p>Below given C program implements linked list #include #include #include struct list { int data; struct list *next,*prev; }*head=NULL; void main() { void insert(); void del(); int c; clrscr(); /****************************************************************/ printf("\n\tOUTPUT::\n"); printf("\n\t1:insert \t\t2:delete\n\t3:exit"); while(1) { printf("\n\tENTER CHOICE: "); scanf("%d",&#038;c); switch(c) { case 1: insert(); break; case 2: del(); break; case 3: exit(1); } } }</p>
<p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/data-structures-c/c-program-to-implement-linked-list/">C program to implement linked list</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Below given C program implements linked list</p>
<pre lang="c" line="1">
#include<stdio.h>
#include<conio.h>
#include<alloc.h>
struct list
{
    int data;
    struct list *next,*prev;
}*head=NULL;
void main()
{
    void insert();
    void del();
    int c;
    clrscr();

    /****************************************************************/

    printf("\n\tOUTPUT::\n");
    printf("\n\t1:insert \t\t2:delete\n\t3:exit");
    while(1)
    {
        printf("\n\tENTER CHOICE: ");
        scanf("%d",&c);
        switch(c)
        {
        case 1: insert();  break;
        case 2: del();  break;
        case 3: exit(1);
        }
    }
}
/*************************************************************/
void insert()
{
    struct list *temp,*new1,*pr;
    int pos,i=1;
    char ch;
    temp=head;
    printf("\tENTER POSITION TO BE INSERTED: ");
    scanf("%d",&pos);
    new1=(struct list*)malloc(sizeof(struct list));
    printf("\tENTER DATA: ");
    scanf("%d",&new1->data);
    if(pos==1)
    {
        new1->next=temp;
        head=new1;
    }
    else
    {
        while(i
            <pos)
        {
            pr=temp;
            temp=temp->next;
            i++;
        }
        temp->prev=new1;
        new1->next=temp;
        new1->prev=pr;
        pr->next=new1;
    }
}
/****************************************************************/
void del()
{
    struct list *temp,*pr,*t;
    int pos,i=1;
    temp=pr=head;
    printf("\tENTER POSITION TO BE DELETED: ");
    scanf("%d",&pos);
    temp=head;
    while(i
        <pos)
    {
        pr=temp;
        temp=temp->next;
        i++;
    }
    t=temp;
    temp=temp->next;
    pr->next=temp;
    temp->prev=pr;
    free(t);
}
</pre><p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/data-structures-c/c-program-to-implement-linked-list/">C program to implement linked list</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/c-tutorials/c/data-structures-c/c-program-to-implement-linked-list/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
