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 the explanation for cyclic nature of data types in c?
Can a file other than a .h file be included with #include?
Why header files are used?
Explain the properties of union. What is the size of a union variable
Why do we use main function?
Differentiate call by value and call by reference?
What is static memory allocation? Explain
I came across some code that puts a (void) cast before each call to printf. Why?
Explain which function in c can be used to append a string to another string?
In a header file whether functions are declared or defined?
Can we add pointers together?
What is #pragma statements?
Can the “if” function be used in comparing strings?
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
about c language