Question: 1. Write a C program to implement character stuffing and destuffing. The program will take a sequence of characters, a flag character, and a
1. Write a C program to implement character stuffing and destuffing. The program will take a sequence of characters, a flag character, and a stuffing character as input. Then adds the flag character at the beginning and end of the input character sequence and stuff a stuffing character before every flag character in the input character sequence. Again, removes the flag and stuffed characters to get the initial character sequence. (Where, 0 < character sequence < 100). Sample Input: Character sequence: floccinaucinihilipilification Flag character: c Stuffing character: a Sample Output: Stuffed data: cfloacacinauacinihilipilifiacationc De-stuffed data: floccinaucinihilipilification
Step by Step Solution
3.49 Rating (152 Votes )
There are 3 Steps involved in it
main char a30fs50t3sdedx3s3d3y3 int ijp0q0 clrscr printfEnter c... View full answer
Get step-by-step solutions from verified subject matter experts
