Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Why C language is a procedural language?

1094


please explain every phase in the "SDLC" in the dotnet.

2668


What is the newline escape sequence?

1143


What does %c mean in c?

1139


what is the difference between class and unio?

2417


Explain what are reserved words?

1160


How many identifiers are there in c?

1083


What is the advantage of a random access file?

1253


When is the “void” keyword used in a function?

1579


What are the benefits of organizational structure?

1064


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

1755


Explain #pragma statements.

1100


Which type of language is c?

1119


Explain what is the difference between text files and binary files?

1216


how to count no of words,characters,lines in a paragraph.

4471