Write a function stroverlap that takes (at least) two
strings, and concatenates them, but does not duplicate any
overlap. You only need to worry about overlaps between the
end of the first string and the beginning of the second
string.
Examples:
batman, manonthemoon = batmanonthemoon
batmmamaman, mamamanonthemoon = batmmamamanonthemoon
bat, man = batman
batman, batman = batman
batman, menonthemoon = batmanmenonthemoon


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

How main function is called in c?

0 Answers  


Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given

0 Answers   XYZ,


What is a stream?

0 Answers  


Which of these functions is safer to use : fgets(), gets()? Why?

0 Answers  


How can I rethow can I return a sequence of random numbers which dont repeat at all?

0 Answers  






Why & is used in scanf in c?

0 Answers  


wat is output of the following int main() { const int j=2; int i; switch(i) { case 1:break; case j:break; default:break; } }

2 Answers  


25. It takes five minutes to pass a rumour from one person to two other persons. The tree of rumour continues. Find how many minutes does it take spread the rumour to 768 persons. ?

11 Answers   CTS, TCS,


write a reverse string to print a stars.(with out using logic) ***** **** *** ** *

2 Answers  


What does main () mean in c?

0 Answers  


How to print %d in output

6 Answers   Wipro,


What is a pointer variable in c language?

0 Answers  


Categories