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,

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!