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. 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
Get step-by-step solutions from verified subject matter experts
