This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Write a small console application that uses a string comparison function that meets the following prototype: | |
# Entered or passed strings may be of any length; trap for edge conditions and display error messages. | |
# Function must return an int that is: | |
# <0 if string1 is less than string2; | |
# 0 if string1 is the same as string2; or | |
# >0 if string1 is greater than string2; | |
# and display the 2 strings as noted below. |