Question: C++ Pointers and C-Style strings 13THE CSTRFIND FUNCTION Write the function cStrFin. The function has two parameters: a const char *str, and a const char
C++
Pointers and C-Style strings

13THE CSTRFIND FUNCTION Write the function cStrFin. The function has two parameters: a const char *str, and a const char subs. Find the first location where subs is found in str (as an int). Return -1 if subs is not located in str. You may use pointer or array notation, but you cannot use any functions or classes from the standard library
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
