Question: C programming not C++. Write a program compare.c that reads two strings from command line and outputs whether one is the reverse of the other
C programming not C++.
Write a program compare.c that reads two strings from command line and outputs whether one is the reverse of the other while ignoring the case. If the user does not run the program with the correct number of parameters, the program should output an error. Sample runs of the program are as follows: >compare olla allo The strings are the reverse of each other >compare CAT tac The strings are the reverse of each other >compare Dog dragon The strings are not the reverse of each other >compare fog You must enter two words for comparison. Please
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
