Question: Goal: Learn how to use the strcmp function to compare two C - strings. Assignment: Implement a function named stringorder that takes two C -
Goal: Learn how to use the strcmp function to compare two C strings.
Assignment: Implement a function named stringorder that takes two C strings, word and word as arguments and returns nothing. The function should print "First comes first" if word is
lexicographically smaller than word "Second comes first" if word is lexicographically smaller than word and "Words are equal" if both strings are identical.
Note: You can use the functions defined in th
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
