subject

Write a program that inputs a line of text and a search string from the keyboard. Using function strstr , locate the first
occurrence of the search string in the line of text, and assign
the location to variable searchPtr of type char * . If the search
string is found, print the remainder of the line of text beginning
with the search string. Then, use strstr again to locate the next
occurrence of the search string in the line of text. If a second
occurrence is found, print the remainder of the line of text
beginning with the second occurrence. [Hint: The second call
to strstr should contain searchPtr + 1 as its first argument.]

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:40
Access defaults to searching for information on the
Answers: 1
question
Computers and Technology, 22.06.2019 10:30
You have a large, late-model pick-up truck with a rear seat. the pick-up truck weighs 6,500 pounds. the florida seat belt law
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
People with high self-esteem: accept their strengths and weaknesses. believe that failed experiences are failures of their whole self. feel good about who they are only when they reach total success. need positive external experiences to counteract negative feelings that constantly plague them.
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
The keyboard usually has six rows of keys. which of the following is not one of the key group categories? letter keys number keys control keys graphic keys
Answers: 1
You know the right answer?
Write a program that inputs a line of text and a search string from the keyboard. Using function st...
Questions
question
Mathematics, 18.03.2021 02:00
question
Mathematics, 18.03.2021 02:00
Questions on the website: 13722363