<?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>sorting | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/sorting/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Sat, 10 Dec 2022 04:29:47 +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>Program to arrange the string in alphabetical order</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/string/program-arrange-string-alphabetical-order/</link>
					<comments>https://studentprojects.in/software-development/c-tutorials/c/string/program-arrange-string-alphabetical-order/#respond</comments>
		
		<dc:creator><![CDATA[Chitra]]></dc:creator>
		<pubDate>Tue, 30 Aug 2011 14:24:39 +0000</pubDate>
				<category><![CDATA[String Programs]]></category>
		<category><![CDATA[string sorting]]></category>
		<category><![CDATA[alphabetical]]></category>
		<category><![CDATA[string programs]]></category>
		<category><![CDATA[sorting]]></category>
		<category><![CDATA[c program]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=1769</guid>

					<description><![CDATA[<p>Here is the program to arrange the string in alphabetical order. #include "stdio.h" #include "conio.h" #include "string.h" void main() { char str[10],temp; int i,j; clrscr(); printf("\nEnter the string : "); scanf("%s",str); for(i=0;i&#60;strlen(str);i++) for(j=0;j&#60;strlen(str);j++) if(str[i]&#60;str[j]) { temp = str[i]; str[i] = str[j]; str[j] = temp; } printf(&#34;Reversed String is : %s&#34;,str); getch(); }</p>
<p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/string/program-arrange-string-alphabetical-order/">Program to arrange the string in alphabetical order</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Here is the program to arrange the string in alphabetical order.</p>
<pre lang="c" escaped="true" line="1">
  #include "stdio.h"
  #include "conio.h"
  #include "string.h"
  void main()
  {
     char str[10],temp;
     int i,j;
     clrscr();
     printf("\nEnter the string : ");
     scanf("%s",str);
     for(i=0;i&lt;strlen(str);i++)
       for(j=0;j&lt;strlen(str);j++)
	 if(str[i]&lt;str[j])
	 {
	   temp = str[i];
	   str[i] = str[j];
	   str[j] = temp;
	 }
     printf(&quot;Reversed String is : %s&quot;,str);
     getch();
  }
</pre><p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/string/program-arrange-string-alphabetical-order/">Program to arrange the string in alphabetical order</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/string/program-arrange-string-alphabetical-order/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Insertion sort in C program</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/sorting/program-to-sort-the-numbers-using-insertion-sort/</link>
					<comments>https://studentprojects.in/software-development/c-tutorials/c/sorting/program-to-sort-the-numbers-using-insertion-sort/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Thu, 04 Dec 2008 06:12:42 +0000</pubDate>
				<category><![CDATA[C Tutorials]]></category>
		<category><![CDATA[Sorting Programs]]></category>
		<category><![CDATA[sorting numbers]]></category>
		<category><![CDATA[logic]]></category>
		<category><![CDATA[sort in c]]></category>
		<category><![CDATA[Insertion sort]]></category>
		<category><![CDATA[sorting in c]]></category>
		<category><![CDATA[sorting demo]]></category>
		<category><![CDATA[sorting]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[algorithm]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[C/C++ Programms]]></category>
		<category><![CDATA[Source Codes]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=351</guid>

					<description><![CDATA[<p>Here is the program to sort the given integer in ascending order using insertion sort method. Please find the pictorial tutor of the insertion sorting. Logic : Here, sorting takes place by inserting a particular element at the appropriate position, that&#8217;s why the name-  insertion sorting. In the First iteration, second element A[1] is compared</p>
<p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/sorting/program-to-sort-the-numbers-using-insertion-sort/">Insertion sort in C program</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Here is the program to sort the given integer in ascending order using insertion sort method. Please find the pictorial tutor of the insertion sorting.</p>
<p><strong>Logic :</strong> Here, sorting takes place by inserting a particular element at the appropriate position, that&#8217;s why the name-  insertion sorting. In the First iteration, second element A[1] is compared with the first element A[0]. In the second iteration third element is compared with first and second element. In general, in every iteration an element is compared with all the elements before it. While comparing if it is found that the element can be inserted at a suitable position, then space is created for it by shifting the other elements one position up and inserts the desired element at the suitable position. This procedure is repeated for all the elements in the list.</p>
<p>If we complement the if condition in this program, it will give out the sorted array in descending order. Sorting can also be done in other methods, like selection sorting and bubble sorting, which follows in the next pages.</p>
<figure id="attachment_912" aria-describedby="caption-attachment-912" style="width: 580px" class="wp-caption aligncenter"><img decoding="async" class="size-full wp-image-912" title="Insertion Sort Demo" src="https://studentprojects.in/wp-content/uploads/2008/12/insertion_sort.jpg" alt="Insertion Sort Demo" width="580" height="1332" /><figcaption id="caption-attachment-912" class="wp-caption-text">Insertion Sort Demo</figcaption></figure>
<p><strong>C program for Insertion Sort:</strong></p>
<pre lang="c" line="1" escaped="true">#include
void main()
{
	int A[20], N, Temp, i, j;
	clrscr();
	printf("\n\n\t ENTER THE NUMBER OF TERMS...: ");
	scanf("%d", &amp;N);
	printf("\n\t ENTER THE ELEMENTS OF THE ARRAY...:");
	for(i=0; i&lt;N; i++)
	{
		scanf("\n\t\t%d", &amp;A[i]);
	}
	for(i=1; i&lt;N; i++)
	{
		Temp = A[i];
		j = i-1;
		while(Temp&lt;A[j] &amp;&amp; j&gt;=0)
		{
			A[j+1] = A[j];
			j = j-1;
		}
		A[j+1] = Temp;
	}
	printf("\n\tTHE ASCENDING ORDER LIST IS...:\n");
	for(i=0; i&lt;N; i++)
		printf("\n\t\t\t%d", A[i]);
	getch();
}
</pre>
<p><a href="https://studentprojects.in/wp-content/uploads/2008/12/ins_srt.zip">Download exe and source code here.</a></p><p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/sorting/program-to-sort-the-numbers-using-insertion-sort/">Insertion sort in C program</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/sorting/program-to-sort-the-numbers-using-insertion-sort/feed/</wfw:commentRss>
			<slash:comments>194</slash:comments>
		
		
			</item>
	</channel>
</rss>
