Question: Write a C program to do the following: ( i ) Input two Strings S 1 and S 2 ( ii ) If the strings

Write a C program to do the following:
(i) Input two Strings S1 and S2
(ii) If the strings are equal, it has to display "Yes , they are Equal"
If the $S1\gt S2$ , it has to display $S1$ is the greatest String"
If the $S1\lt S2$ , it has to display "S2 is the greatest String"
Note: You should not use the strcmp()function to compare the Strings

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!