Write a program to find the number of times that a given word occurs in a sentence using pointers.
Read data from standard input. The first line is a single word, which is followed by general text on the second line. Read both up to a new line character, and insert a terminating null before processing.
Typically output should be :
The word is “ the ”.
The sentence is “ the cat on the mat “ .
The word occurs 2 times.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here