if(len !=len printf("\ the two strings are not equal")if(same = if(str [ ]>str [ ]printf("\ string is greater than string ")else if(str [ ]<str [ ]printf("\ string is greater than string ")getch()return output enter the first string hello enter the second string hello the two strings are equal reversing string if "hello"then reverse of "ollehto reverse stringwe just need to swap the first character with the lastsecond character with the second last characterand so on figure shows an algorithm that reverses string note the library function strrev( which is defined in string reverses all the characters in the string except the null character in step is initialized to zero and is initialized to the length of the string - in step while loop is executed until all the characters of the string are accessed in step we swap the step [initializeset ijlength(str)- step repeat steps and while step swap(str( )str( )step set [end of loopstep exit figure algorithm to reverse string ith character of str with its jth character as resultthe first character of str will be replaced with its last characterthe second character will be replaced with the second last character of strand so on in step the value of is incremented and is decremented to traverse str in the forward and backward directionsrespectively programming example write program to reverse given string #include #include #include int main(char str[ ]reverse_str[ ]tempint = = clrscr()printf("\ enter the string ")gets(str) strlen(str)- while( jtemp str[ ]