<?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>Cyclic Redundency Check | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/cyclic-redundency-check/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:15 +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 Cyclic Redundency Check</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/program-for-cyclic-redundency-check/</link>
					<comments>https://studentprojects.in/software-development/c-tutorials/c/program-for-cyclic-redundency-check/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Fri, 18 Sep 2009 18:47:44 +0000</pubDate>
				<category><![CDATA[C Programs]]></category>
		<category><![CDATA[c program]]></category>
		<category><![CDATA[source code]]></category>
		<category><![CDATA[Cyclic Redundency Check]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=765</guid>

					<description><![CDATA[<p>INPUT:<br />
enter frame :<br />
1 1 1 1 1 1 1 1<br />
enter generator :<br />
1 1 0 1</p>
<p>OUTPUT:<br />
frame received correctly</p>
<p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/program-for-cyclic-redundency-check/">Program for Cyclic Redundency Check</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>INPUT:<br />
enter frame :<br />
1 1 1 1 1 1 1 1<br />
enter generator :<br />
1 1 0 1</p>
<p>OUTPUT:<br />
frame received correctly</p>
<pre lang="c" escaped="true" line="1">
#include&lt;stdio.h&gt;
#include&lt;conio.h&gt;
int gen[4],genl,frl,rem[4];
void main()
{
int  i,j,fr[8],dupfr[11],recfr[11],tlen,flag;
clrscr();
frl=8;  genl=4;
printf("enter frame:");
for(i=0;i&lt;frl;i++)
{
scanf("%d",&amp;fr[i]);
dupfr[i]=fr[i];
}
printf("enter generator:");
for(i=0;i&lt;genl;i++)
scanf("%d",&amp;gen[i]);

tlen=frl+genl-1;
for(i=frl;i&lt;tlen;i++)
{
dupfr[i]=0;
}
remainder(dupfr);

for(i=0;i&lt;frl;i++)
{
recfr[i]=fr[i];
}
for(i=frl,j=1;j&lt;genl;i++,j++)
{
recfr[i]=rem[j];
}
remainder(recfr);
flag=0;
for(i=0;i&lt;4;i++)
{
if(rem[i]!=0)
flag++;
}
if(flag==0)
{
printf("frame received correctly");
}
else
{
printf("the received frame is wrong");
}

getch();
}

remainder(int fr[])
{
int k,k1,i,j;
for(k=0;k&lt;frl;k++)
{
if(fr[k]==1)
{
k1=k;
for(i=0,j=k;i&lt;genl;i++,j++)
{
rem[i]=fr[j]^gen[i];
}

for(i=0;i&lt;genl;i++)
{
fr[k1]=rem[i];
k1++;
}
}
}
}
</pre><p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/program-for-cyclic-redundency-check/">Program for Cyclic Redundency Check</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-cyclic-redundency-check/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
