<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: Find the Second Largest Number in an Array	</title>
	<atom:link href="https://webrewrite.com/how-to-find-second-largest-element-in-an-unsorted-array/feed/" rel="self" type="application/rss+xml" />
	<link>https://webrewrite.com/how-to-find-second-largest-element-in-an-unsorted-array/</link>
	<description>Technology Blog Where You Find Programming Tips and Tricks</description>
	<lastBuildDate>Tue, 01 Feb 2022 02:26:48 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>
		By: Abhishek Prasad		</title>
		<link>https://webrewrite.com/how-to-find-second-largest-element-in-an-unsorted-array/#comment-722</link>

		<dc:creator><![CDATA[Abhishek Prasad]]></dc:creator>
		<pubDate>Tue, 07 Jun 2016 17:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://webrewrite.com/?p=1779#comment-722</guid>

					<description><![CDATA[/* This is much simpler logic compared to the above one */
#include

int main()

{

int a[]={70,4,8,10,14,9,7,6,5,3,2,69};

int f=a[0];

int s=a[1];

int temp;

if(s&#062;f){

    temp=f;

    f=s;

    s=temp;

}

int i;

for(i=2;is){

        if(a[i]&#062;f){

            s=f;

            f=a[i];

        }

        else

            s=a[i];

    }

}

printf(&quot;second= %d&quot;, s);

printf(&quot;nmax= %d&quot;, f);

}]]></description>
			<content:encoded><![CDATA[<p>/* This is much simpler logic compared to the above one */<br />
#include</p>
<p>int main()</p>
<p>{</p>
<p>int a[]={70,4,8,10,14,9,7,6,5,3,2,69};</p>
<p>int f=a[0];</p>
<p>int s=a[1];</p>
<p>int temp;</p>
<p>if(s&gt;f){</p>
<p>    temp=f;</p>
<p>    f=s;</p>
<p>    s=temp;</p>
<p>}</p>
<p>int i;</p>
<p>for(i=2;is){</p>
<p>        if(a[i]&gt;f){</p>
<p>            s=f;</p>
<p>            f=a[i];</p>
<p>        }</p>
<p>        else</p>
<p>            s=a[i];</p>
<p>    }</p>
<p>}</p>
<p>printf(&#8220;second= %d&#8221;, s);</p>
<p>printf(&#8220;nmax= %d&#8221;, f);</p>
<p>}</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ajitav Mohanty		</title>
		<link>https://webrewrite.com/how-to-find-second-largest-element-in-an-unsorted-array/#comment-680</link>

		<dc:creator><![CDATA[Ajitav Mohanty]]></dc:creator>
		<pubDate>Mon, 28 Mar 2016 07:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://webrewrite.com/?p=1779#comment-680</guid>

					<description><![CDATA[Thank you very much for explanation.
]]></description>
			<content:encoded><![CDATA[<p>Thank you very much for explanation.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
