Question 5:
(2 marks)
The given file Q4.c already contains statements to input string of s1 and s2. The given file Q4.c already contains statements to input strings of s1 and s2. You should write statements to check whether string s1 is a substring of S2. If yes, return the index of the first occurrence, otherwise return the message.
Notes:
- You can create new function(s) if you see it is necessary.
- Do not edit given statements in the main function.
Sample input and output:
Input:
for She has lived here for twenty years
Output:20
Zoom
+ 100%
Close