copied into the destination string starting from that position finallya null character is added to terminate the destination string programming example write program to append string to another string #include #include int main(char dest_str[ ]source_str[ ]int = = clrscr()printf("\ enter the source string ")gets(source_str)printf("\ enter the destination string ")gets(dest_str)while(dest_str[ !'\ ' ++while(source_str[ !'\ 'dest_str[isource_str[ ] ++ ++dest_str[ '\ 'printf("\ after appendingthe destination string is ")puts(dest_str)getch()return output enter the source string how are youenter the destination string helloafter appendingthe destination string is hellohow are youcomparing two strings if and are two stringsthen comparing the two strings will give either of the following results(as and are equal (bs > when in dictionary orders will come after (cs < when in dictionary orders precedes to compare the two stringseach and every character is compared from both the strings if all the characters are the samethen the two strings are said to be equal figure shows an algorithm that compares two strings note the library function strcmp( which is defined in string compares string with in this algorithmwe first check whether the two strings are of the same length if notthen there is no point in moving aheadas it straight away means that the two strings are not the same howeverif the two strings are of the same lengththen we compare character by character to check if all the characters are same if yesthen the variable same is set to elseif same then we check which string precedes the other in the dictionary order and print the corresponding message