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

C++ Pointers and C-Style strings 13THE CSTRFIND FUNCTION Write the function cStrFin.

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

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!