Skip to content
This repository has been archived by the owner on Feb 14, 2020. It is now read-only.

Latest commit

 

History

History

9_hamming

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Hamming code

Write a program to illustrate the hamming code concept.

Compile

$ gcc hamming.c -o hamming.o

Run Program

$ ./hamming.o
Enter 4-bit data (seperated by space)
1 0 1 0

Encoded data:
1 0 1 1 0 1 0
Enter received data (7-bit):
1 0 1 1 0 0 0

Error bit is 6
Error free data is: 1 0 1 0
$ ./hamming.o
Enter 4-bit data (seperated by space)
1 0 1 0

Encoded data:
1 0 1 1 0 1 0
Enter received data (7-bit):
1 0 1 1 0 1 0

Error free data