C program to insert substring into a string
C program to insert a substring into a string: This code inserts a string into the source string. For example,if the source string is "C programming" and string to insert is " is amazing" (please note there is space at beginning) and if we insert string at position 14 then we obtain the string "C programming is amazing". In our C program we will make a function which performs the desired task and pass three arguments to it the source string, string to insert and position. You can insert the string at any valid position
Output of program:
Enter some Text
Computer is ammazing
Enter the string to insert
programming
Enter the position to insert
10
Computer programming is ammazing
need an explanation for this answer? contact us directly to get an explanation for this answer