0

Write a C program to search all occurrences of a word in given string using loop Array Index starts from 0

TEST CASE 1 INPUT : srm university srm university srm OUTPUT: 0 15 TEST CASE 2 INPUT : srm srm srm srm srm srm OUTPUT: 0 4 8 12 16

29th Feb 2020, 5:16 AM
Somya Sarathi Samal
Somya Sarathi Samal - avatar
2 ответов
+ 2
tip, use the function strstr or strtok
29th Feb 2020, 5:29 AM
Shen Bapiro
Shen Bapiro - avatar