Substring occurrences in a string (C) | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

Substring occurrences in a string (C)

Hello! I have to find how many times is a substring present in a string. I tried with while((strstr(str, sub))!=NULL){ (int) count++} But does not work Could you help me please🙏

24th Jul 2019, 8:30 AM
Dorotea
0 Antworten