C Sharp (C#) - Strings and StringBuilder
What does the
IndexOf method return if the searched substring is not found in a string?IndexOf method return if the searched substring is not found in a string?IndexOf behaviorIndexOf method returns the zero-based index of the first occurrence of the substring if found.IndexOf returns -1 to indicate absence.IndexOf returns -1 if substring missing [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions