Question: In language C please (Strings) Write a code that reads from the user two sentences (sentence1, sentence2) Compare sentence1 to sentence2 and print out the
In language C please
(Strings)
- Write a code that reads from the user two sentences (sentence1, sentence2)
- Compare sentence1 to sentence2 and print out the result.
- Search for your first name in sentence1.
- Break a string in sentence1 into a series of tokens. Print out these tokens.
- Concatenate sentence1 and sentence2.
- Declare a new variable named sentence3.
- Copy the first 10 characters from sentence1 to sentence3.
- Write a function called reverse to reverse the characters in a sentence and print the reversed result (use for loop and putchar). Call this method in the main function and pass sentence3 to it.
- Print out sentence1, sentence2, and sentence3.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
