1. Write a program that invokes a function called find( ) to perform the following tasks: (a) Receives a character array and a single character. (b) Returns 1 if the specified character is found in...

1. Write a program that invokes a function called find( ) to perform the following tasks:

(a) Receives a character array and a single character.


(b) Returns 1 if the specified character is found in the array, 0 otherwise.


2. Design a function locate ( ) that takes two character arrays s1 and s2 and one integer value


m as parameters and inserts the string s2 into s1 immediately after the index m.


Write a program to test the function using a real-life situation. (Hint: s2 may be a missing


word in s1 that represents a line of text).




May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here