Name a function used to give the first occurence of string 2 in string 1.
Answers
Answered by
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
Math,
7 months ago
Math,
7 months ago
Computer Science,
1 year ago
Math,
1 year ago
Economy,
1 year ago