<?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>replace bank | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/replace-bank/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>
	</channel>
</rss>
