Answer to Question #50602 in C++ for Umer
strings and returns –1 if s1 comes first alphabetically, 0 if s1 and s2 are the same, and 1
if s2 comes first alphabetically. Call your function compstr(). It should take two char*
strings as arguments, compare them character by character, and return an int. Write a
main() program to test the function with different combinations of strings. Use pointer
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!