Bit Stuffing Program in C

What is bit stuffing program in C?

In Bit Stuffing Each frame begins and ends with a special bit pattern called a flag byte [01111110]. {Note this is 7E in hex}. Whenever the sender data link layer encounters five consecutive ones in the data stream, it automatically stuffs a 0 bit into the outgoing stream.

Bit Stuffing Program in C

C Program for Bit Stuffing

OUTPUT of Bit Stuffing

You learn about the bitwise operator in java here

1 thought on “Bit Stuffing Program in C”

Comments are closed.