write a program to print combinations of string taken r at a time in c. According to wikipedia “a combination is a way of selecting items from a collection, such that (unlike permutations) the order of selection does not matter.” For example if given string is “1234” and if r is 2 then the output should be 12,13,14,23,24,34.

print combinations of string taken r at a time in cRecursive function to print combinations of string taken r at a time in c

Ref:

http://mathworld.wolfram.com/Combination.html