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...


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.



Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here