Mark As Completed Discussion

Let's test your knowledge. Click the correct answer from the options.

Which of the following string functions in C++ can be used to find the first occurrence of a substring within a string?

Click the option that best answers the question.

  • length()
  • find()
  • insert()
  • erase()