<?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>string programs | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/string-programs-2/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Sun, 11 Dec 2022 10:12:25 +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 replace each string of one or more blanks by a single blank</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/string/program-replace-string-blanks-single-blank-2/</link>
					<comments>https://studentprojects.in/software-development/c-tutorials/c/string/program-replace-string-blanks-single-blank-2/#respond</comments>
		
		<dc:creator><![CDATA[Chitra]]></dc:creator>
		<pubDate>Tue, 06 Sep 2011 13:06:31 +0000</pubDate>
				<category><![CDATA[String Programs]]></category>
		<category><![CDATA[string programs]]></category>
		<category><![CDATA[replace bank]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=2151</guid>

					<description><![CDATA[<p>Here is the program to replace each string of one or more blanks by a single blank. Output:</p>
<p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/string/program-replace-string-blanks-single-blank-2/">Program to replace each string of one or more blanks by a single blank</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Here is the program to replace each string of one or more blanks by a single blank.</p>



<pre class="wp-block-code"><code lang="c" class="language-c">#include "stdio.h"
#include "string.h"
int
main ()
{
  char input[100], output[100], c;
  int i = 0, j = 0;
  printf ("Enter the string\n");
  gets (input);
  for (i = 0; i &lt; strlen (input); i++)
    {
      if (input[i] == ' ' &amp;&amp; input[i + 1] != ' ')
          output[j++] = input[i];
      else if (input[i] != ' ')
          output[j++] = input[i];
    }

  printf ("\noutput string is\n");
  puts (output);
}
</code></pre>



<p><strong>Output:</strong></p>



<pre class="wp-block-code"><code class="">Enter the string
How          are                 you         ?
Output string is: How are you ? </code></pre>



<p></p><p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/string/program-replace-string-blanks-single-blank-2/">Program to replace each string of one or more blanks by a single blank</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-replace-string-blanks-single-blank-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<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[c program]]></category>
		<category><![CDATA[sorting]]></category>
		<category><![CDATA[string programs]]></category>
		<category><![CDATA[alphabetical]]></category>
		<category><![CDATA[string sorting]]></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>Program to delete n Characters from a given position in a given string using functions</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/string/program-delete-characters-position-string-functions/</link>
					<comments>https://studentprojects.in/software-development/c-tutorials/c/string/program-delete-characters-position-string-functions/#comments</comments>
		
		<dc:creator><![CDATA[Chitra]]></dc:creator>
		<pubDate>Mon, 29 Aug 2011 09:39:37 +0000</pubDate>
				<category><![CDATA[String Programs]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[string programs]]></category>
		<category><![CDATA[delete characters]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=1750</guid>

					<description><![CDATA[<p>This C program uses function delchar to delete n characters from a given position in a given string. #include "stdio.h" #include "conio.h" #include "string.h" void delchar(char *x,int a, int b); void main() { char string[10]; int n,pos,p; clrscr(); puts("Enter the string"); gets(string); printf("Enter the position from where to delete"); scanf("%d",&#38;pos); printf("Enter the number of characters</p>
<p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/string/program-delete-characters-position-string-functions/">Program to delete n Characters from a given position in a given string using functions</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>This C program uses function delchar to delete n characters from a given position in a given string.</p>
<pre lang="c" escaped="true" line="1">
#include "stdio.h"
#include "conio.h"
#include "string.h"

void delchar(char *x,int a, int b);

void main()
{
     char string[10];
     int n,pos,p;
     clrscr();

     puts("Enter the string");
     gets(string);
     printf("Enter the position from where to delete");
     scanf("%d",&amp;pos);
     printf("Enter the number of characters to be deleted");
     scanf("%d",&amp;n);
     delchar(string, n,pos);
     getch();
}

// Function to delete n characters
void delchar(char *x,int a, int b)
{
  if ((a+b-1) &lt;= strlen(x))
  {
    strcpy(&amp;x[b-1],&amp;x[a+b-1]);
    puts(x);
    }
}</pre><p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/string/program-delete-characters-position-string-functions/">Program to delete n Characters from a given position in a given string using functions</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-delete-characters-position-string-functions/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
