Professional Documents
Culture Documents
CNET Lab-3 - ECB19025
CNET Lab-3 - ECB19025
Computer Network
Lab Report: 3
Aim: Asynchronous Error Detection,Sender’s Part
Code:
//1 1 1010110 0
//start bit (1) -- parity bit (to make the number of 1s as even) -- 7-bit data word -- end bit (0)
//In this experiment, we append the start bit, end bit, and parity bit
//transmitter end
#include<stdio.h
>
#include<string.h
>
main()
{
int w[8], f[40][10]
,
p = 0;//0 means even
char s[40];
printf("Enter a string:\t"); scanf("%s",
&s);
Output: