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 / 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


Please Help Members By Posting Answers For Below Questions

Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

1053


What is the deal on sprintf_s return value?

1067


How do you sort filenames in a directory?

1124


Why do we need functions in c?

956


Write a program for finding factorial of a number.

1032


What functions are used for dynamic memory allocation in c language?

1077


What are run-time errors?

1055


Describe the difference between = and == symbols in c programming?

1298


What is the use of printf() and scanf() functions?

1069


Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

2521


What do you mean by dynamic memory allocation in c? What functions are used?

1107


How do I use void main?

1052


Can you subtract pointers from each other? Why would you?

916


How to find a missed value, if you want to store 100 values in a 99 sized array?

1364


How is a structure member accessed?

1060