Question: 1. Write a user-defined function that compares two strings with each other. If first one is equal to second returns 0, greater than second

1. Write a user-defined function that compares two strings with each other.

 

1. Write a user-defined function that compares two strings with each other. If first one is equal to second returns 0, greater than second returns 1 and less than second returns -1. Your function prototype is int compareString(char*, char *) Write a C++ program to test your function. Example Input/Output: DELL ASUS e Process exited after 113.2 seconds with return value Press any key to continue... Computer Science -1 Process exited after 42.99 seconds with return value Press any key to continue

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 Programming Questions!