Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Genetic Databases

Authors: Martin J. Bishop

1st Edition

0121016250, 978-0121016258

More Books

Students also viewed these Databases questions