Thank you for your reply. Problem solved!

Tom Gunn commented: The thread is useless now that you have deleted the original question. -2

Recommended Answers

All 2 Replies

The function toupper takes a character argument and returns a character. so you cant assign a string and expect to get back the string itself.

You will have to replace every letter in the string with its equivallent.Upper case character.

Kindly work me thru how to write a program that prompts the user to enter three strings and does the following:

a. Output the strings in uppercase

b. Give the string length for each word

c. Of the three strings, determine the word that would be last alphabetically

d. Of the the three strings determine the word that would be first

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.