I need to write a program in C which will print all the combinations of a string with non-repeating characters. Example: “Say” will have the following: S, a,y, Sa, Sy, aS,Sy, yS, ya, aSy, and so on. The string length is not known. The string will be a command line argument to the program.
This is not like a normal permutation of string.
Can anyone help me on this ASAP.
Thanks in advance