Write a C program to find the first occurrence of word in a string using loop. How to find the first occurrence of any word in a given string in C programming. Logic to search a word in a given string in C programming.
Example
Input
Input string: I love programming! Input word to search: love
Output
'love' is found at index 2.