<?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>stuffing | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/stuffing/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Sun, 20 Sep 2009 08:13:37 +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 for Bit Stuffing</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/program-for-bit-stuffing/</link>
					<comments>https://studentprojects.in/software-development/c-tutorials/c/program-for-bit-stuffing/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Fri, 18 Sep 2009 18:17:45 +0000</pubDate>
				<category><![CDATA[C Programs]]></category>
		<category><![CDATA[c program]]></category>
		<category><![CDATA[source code]]></category>
		<category><![CDATA[bits]]></category>
		<category><![CDATA[stuffing]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=757</guid>

					<description><![CDATA[<p>Enter frame length: 10</p>
<p>Enter input frame (0's &#38; 1's only):<br />
1 0 1 0 1 1 1 1 1 1</p>
<p>After stuffing the frame is:<br />
1 0 1 0 1 1 1 1 1 0 1</p>
<p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/program-for-bit-stuffing/">Program for Bit Stuffing</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>OUTPUT:</p>
<p>Enter frame length: 10</p>
<p>Enter input frame (0&#8217;s &amp; 1&#8217;s only):<br />
1 0 1 0 1 1 1 1 1 1</p>
<p>After stuffing the frame is:<br />
1 0 1 0 1 1 1 1 1 0 1</p>
<pre lang="c" escaped="true" line="1">#include&lt;stdio.h&gt;
#include&lt;conio.h&gt;
#include&lt;string.h&gt;
void main()
{
int a[20],b[30],i,j,k,count,n;
clrscr();
printf("Enter frame length:");
scanf("%d",&amp;n);
printf("Enter input frame (0's &amp; 1's only):");
for(i=0;i&lt;n;i++)
scanf("%d",&amp;a[i]);
i=0; count=1; j=0;
while(i&lt;n)
{
if(a[i]==1)
{
b[j]=a[i];
for(k=i+1;a[k]==1 &amp;&amp; k&lt;n &amp;&amp; count&lt;5;k++)
{
j++;
b[j]=a[k];
count++;
if(count==5)
{
j++;
b[j]=0;
}
i=k;
}}
else
{
b[j]=a[i];
}
i++;
j++;
}
printf("After stuffing the frame is:");
for(i=0;i&lt;j;i++)
printf("%d",b[i]);
getch();
}</pre><p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/program-for-bit-stuffing/">Program for Bit Stuffing</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/program-for-bit-stuffing/feed/</wfw:commentRss>
			<slash:comments>14</slash:comments>
		
		
			</item>
	</channel>
</rss>
