Concat two string with most overlapped substring has to
remove "abcd"+ "cdef" = "abcdef
Answer Posted / tarak
#include<stdio.h>
main()
{
char *a="abcd";
char *b="cdef";
char c[10];
int i=0;
while(*a != *b)
{
c[i] = *a++;
i++;
}
while(*b != '\0')
{
c[i]= *b++;
i++;
}
printf("%s\n",c);
}
| Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
Why C language is a procedural language?
please explain every phase in the "SDLC" in the dotnet.
What is the newline escape sequence?
What does %c mean in c?
what is the difference between class and unio?
Explain what are reserved words?
How many identifiers are there in c?
What is the advantage of a random access file?
When is the “void” keyword used in a function?
What are the benefits of organizational structure?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
Explain #pragma statements.
Which type of language is c?
Explain what is the difference between text files and binary files?
how to count no of words,characters,lines in a paragraph.