Concat two string with most overlapped substring has to
remove "abcd"+ "cdef" = "abcdef
Answer Posted / om
@Ashwin Kumar
According to your program....
char *a="abcdcdcd";
char *b="cdef";
output is "abcdef"..//which is wrong.....it should be abcdcdef
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is strcpy() function?
Explain what are the different data types in c?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
What is calloc()?
What are the different types of constants?
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
How can I do serial ("comm") port I/O?
What is main return c?
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
If null and 0 are equivalent as null pointer constants, which should I use?
What is main () in c?
What is the purpose of the preprocessor directive error?
What are the main characteristics of c language describe the structure of ac program?
Is malloc memset faster than calloc?
What do you mean by dynamic memory allocation in c?