Question: write a c language program that does this: assuming string size will be under 60 read 2 words from the user and compare which is

write a c language program that does this:

assuming string size will be under 60

read 2 words from the user and compare which is longer

the output should be only First, Second, or Same

For example:

user input is dog and food.

dog

food

output:

second (since food is longer)

If the user enters a phrase with space, the program will only read the first word ( not count the space)

for example, the input is 'this is fun'

the program only read 'this'

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!