<?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>EmbLogic &#187; linked list output</title>
	<atom:link href="https://www.emblogic.com/blog/tag/linked-list-output/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Tue, 03 Mar 2020 13:00:06 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>linked list prog and output</title>
		<link>https://www.emblogic.com/blog/03/linked-list-prog-and-output/</link>
		<comments>https://www.emblogic.com/blog/03/linked-list-prog-and-output/#comments</comments>
		<pubDate>Tue, 27 Mar 2012 14:44:41 +0000</pubDate>
		<dc:creator><![CDATA[Himanshi]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linked list output]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=2235</guid>
		<description><![CDATA[this is the program for connecting 7nodes&#8230;&#8230; #include int main(void) { struct node { int info; struct node *d; }; struct node d1,*n,*t; { int i; d1.d=(struct node*) malloc(sizeof(struct node)); printf(&#8220;\nmemory allocation for pointer p of d1\n&#8221;); printf(&#8220;\nd1.d=%d\n&#8221;,d1.d); n=(struct node*)malloc(sizeof(struct &#8230; <a href="https://www.emblogic.com/blog/03/linked-list-prog-and-output/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>this is the program for connecting 7nodes&#8230;&#8230;</p>
<p>#include<br />
int main(void)<br />
{</p>
<p>struct node<br />
{<br />
                                                                                         int info;<br />
        struct node *d;<br />
};<br />
        struct node  d1,*n,*t;</p>
<p>{       int i;<br />
        d1.d=(struct node*) malloc(sizeof(struct node));<br />
        printf(&#8220;\nmemory allocation for pointer p of d1\n&#8221;);</p>
<p>        printf(&#8220;\nd1.d=%d\n&#8221;,d1.d);<br />
        n=(struct node*)malloc(sizeof(struct node));<br />
        printf(&#8220;\ngiving base address to pointer n\n&#8221;);</p>
<p>        printf(&#8220;\n*n=%d\n&#8221;,n);<br />
        d1.d=n;<br />
        printf(&#8220;\n2nd node created.pointer d is having base address of pointer n\n&#8221;);</p>
<p>printf(&#8220;\nd1.d=%d&#8221;,d1.d);</p>
<p>        t=n;<br />
        printf(&#8220;\nlinking 2nd 3rd node t=n\n&#8221;);</p>
<p>        printf(&#8220;\n*t=%d\n&#8221;,*t);<br />
        for(i=0;id=n;<br />
                printf(&#8220;\nlinking node %d %d =%d\n&#8221;,i+3,i+4,t-&gt;d);<br />
                t=(struct node*)malloc(sizeof(struct node));<br />
                printf(&#8220;\n getting anothrer base adderess  =%d\n&#8221;,*t);</p>
<p>                n-&gt;d=t;<br />
                printf(&#8220;\nlinking node %d %d =%d\n&#8221;,i+4,i+5,n-&gt;d);</p>
<p>}               return 0;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>output for linked list&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.</p>
<p>memory allocation for pointer p of d1</p>
<p>d1.d=149512200</p>
<p>giving base address to pointer n</p>
<p>*n=149512216</p>
<p>2nd node created.pointer d is having base address of pointer n</p>
<p>d1.d=149512216<br />
linking 2nd 3rd node t=n</p>
<p>*t=0</p>
<p>the loop has started from here</p>
<p>n has got the base adderess=0</p>
<p>linking node 3 4 =149512232</p>
<p> getting anothrer base adderess  =0</p>
<p>linking node 4 5 =149512248</p>
<p>the loop has started from here</p>
<p>n has got the base adderess=0</p>
<p>linking node 4 5 =149512264</p>
<p> getting anothrer base adderess  =0</p>
<p>linking node 5 6 =149512280<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.</p>
<p>sir as i have taken 2 pointers..n equate them in 2/3rd step so that pointers should have same addresses bt after equating them gettin *t=0&#8230;..</p>
<p>kindly tell me the areas at which im getting short&#8230;..<br />
thank you</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/linked-list-prog-and-output/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
