Recursion problem in C

Posted by jake on Stack Overflow See other posts from Stack Overflow or by jake
Published on 2010-05-09T09:08:00Z Indexed on 2010/05/09 9:18 UTC
Read the original article Hit count: 406

Filed under:
|
|

Hi there. I've been trying to solve this problem for a few days now but it seems I haven't grasped the concept of recursion,yet.

I have to build a program in C (recursion is a must here but loops are allowed as well) which does the following: The user inputs 2 different strings.For example: String 1 - ABC String 2 - DE

The program is supposed to print strings which are combined of the ones the user has entered. the rule is that the inner order of the letters in each string (1&2) must remain. That's the output for string1=ABC & string2=DE ":

abcde abdce abdec adbce adbec adebc dabce dabec daebc deabc

If anyone could give me a hand here, it would be great. Thanks guys.

© Stack Overflow or respective owner

Related posts about c

    Related posts about recursion