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
2 Answers
+ 2
tip, use the function strstr or strtok