Question: 3) Write a C-string function void insert(char c, char * s, int index that inserts the character c into the C-string s at the given
3) Write a C-string function void insert(char c, char * s, int index that inserts the character c into the C-string s at the given index. The characters s[index], s[index+1] etc. will be shifted over by one position to accommodate c. Recall, a C-string is an array of characters with a null terminator '\0'. Use pointer notation (no square brackets)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
