Question: Write two (2) overloaded functions that find a string in another string (first function) and find an integer in an integer array (second function). These

  1. Write two (2) overloaded functions that find a string in another string (first function) and find an integer in an integer array (second function). These should be value returning functions that return:
    1. For the string find, the string value if found, not found if the string is not found.
    2. For the integer file, the value if found or -1 if not found.
    3. The string function will pass in a string to find and the containing string, e.g. the request could be to find i in string string ; the second will pass in an int and an integer array.
    4. Write the functions only. This includes the function headers (prototypes not needed) and the function bodies. You do not need to write the function calls, or any include or using statements.

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!