Question: write a C program to edit and delete a string. the program should run until the user wishes to quit and it should be divided
write a C program to edit and delete a string. the program should run until the user wishes to quit and it should be divided into many functions. list of libc functions is strlen(), getchar(),strncmp(), fgets(), strcpy(), scanf(), strcat(). output of the program should be like this-
Enter the source string: Hello world Source string is: Hello world Enter [Dd] (delete),[Ii (insert) or [Oq] (quit) 1 Enter string to insert: of wonders! Enter position to insert Source string is: Hello world of wonders! Enter [Dd] (delete),[Ii (insert) or [Oq] (quit) Enter string to delete Hello Source string is: world of wonders! Enter [Dd] (delete),[Ii (insert) or [Oq] (quit) 1 Enter string to insert: Dear Enter position to insert: Source string is: 'Dear world of wonders
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
