Computer Science, asked by bhavinmrinalini6048, 1 year ago

Name a function used to give the first occurence of string 2 in string 1.

Answers

Answered by mersalkeerthi46
0

Input : s1 = "for", s2 = "geeksforgeeks"

Output : 5

String "for" is present as a substring

of s2.

Input : s1 = "practice", s2 = "geeksforgeeks"

Output : -1.

Similar questions