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)

  1. Write a code that reads from the user two sentences (sentence1, sentence2)
  2. Compare sentence1 to sentence2 and print out the result.
  3. Search for your first name in sentence1.
  4. Break a string in sentence1 into a series of tokens. Print out these tokens.
  5. Concatenate sentence1 and sentence2.
  6. Declare a new variable named sentence3.
  7. Copy the first 10 characters from sentence1 to sentence3.
  8. 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.
  9. Print out sentence1, sentence2, and sentence3.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!