Professional Documents
Culture Documents
CNET Lab-4 - ECB19025
CNET Lab-4 - ECB19025
Code:
#include<stdio.h>
#include<string.h>
#include<math.h>
main()
{
char msg[400], op[40];
int rec[40][8], j
= 0, k = 0, p
= 0,
i;
float a = 0;
printf("Enter the received binary string:\n");
scanf("%s", &msg); int len = strlen(msg);