Concat two string with most overlapped substring has to
remove  "abcd"+ "cdef" = "abcdef

Answer Posted / durga prasad

above code some thing wrong.
if "abcd","cefg" then output will be "abcdcefg"
but above code will give "abcefg"

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where we use clrscr in c?

890


Explain what is wrong with this program statement?

849


How do you print only part of a string?

777


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4388


What is the use of static variable in c?

801


What is else if ladder?

792


How do you print an address?

968


what do the 'c' and 'v' in argc and argv stand for?

855


In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]

2216


How many parameters should a function have?

861


When can you use a pointer with a function?

742


What is the purpose of realloc()?

872


What does %p mean c?

813


What is main function in c?

765


Write the control statements in C language

857