Help plz : Recursive function in C   Independent houses near kukatpally | Apartments in Pragathi Nagar | AndhraVaani.com | Log Out | Topics | Search
Register | Edit Profile

Bewarse TalkTechnology - Talk Only Tech � Help plz : Recursive function in C Previous Next

Author Message
Top of pagePrevious messageNext messageBottom of pageLink to this message

Kasakbabu
Mudiripoyina Bewarse
Username: Kasakbabu

Post Number: 4502
Registered: 11-2004
Posted From: 202.141.43.24

Rating:N/A
Votes: 0(Vote!)

Posted on Monday, May 09, 2005 - 2:10 pm:Edit PostDelete PostView Post/Check IP

C ante typing softwareaa mama?
Top of pagePrevious messageNext messageBottom of pageLink to this message

Aavakaaya
Pilla Bewarse
Username: Aavakaaya

Post Number: 500
Registered: 04-2004
Posted From: 195.220.151.50

Rating:N/A
Votes: 0(Vote!)

Posted on Monday, May 09, 2005 - 1:49 pm:Edit PostDelete PostView Post/Check IP

Can someone help me in writing a recursive function to slove the following problem

I have 3 sets of data..

[1,2] [3,4] [5,6]

I want all the combinations of the members of each set with the members of the other sets.

Like... [1,3,5] [1,4,5]
[1,4,5] [1,4,6]
[2,3,5] [2,4,5]
[2,4,5] [2,4,6]
and so on..


Actually the number of sets and the number of members in each set may vary. Thats why I need a recursive function.

Can some one help me out.

Thanks in advance.