Professional Documents
Culture Documents
CRC (Dividend, Divisor, Remainder) /: Akshat Agarwal
CRC (Dividend, Divisor, Remainder) /: Akshat Agarwal
CRC (Dividend, Divisor, Remainder) /: Akshat Agarwal
Program
# include <stdio.h>
# include <string.h>
# include <stdlib.h>
# define MAX 30
strcpy(out, data);
int main()
{
int i, j;
AKSHAT AGARWAL
strcpy(augWord, dword);
for(i=0; i<strlen(gen)-1; i++)
{
strcat(augWord, "0");
}
printf("\nAugmented dataword is : %s",augWord);
strcpy(cword, dword);
strcat(cword, rem);
printf("\n\nFinal data transmitted : %s", cword);
char recv[MAX];
printf("\n\nEnter the data received : ");
scanf("%s", recv);
AKSHAT AGARWAL
Output
AKSHAT AGARWAL