I'll help you a bit more on the logic.Try to write the prog on your own.If you still can't i'll post the program.
First print all the possible words with a as the first letter.Then print all the words with b as the first letter and finally that of c.So the output should be like this.
abc
acb
bac
bca
cab
cba
This is simple, you should be able to do it on your own.
__________________
I don't always make sense,but when I do,I don't.
1. scan ASCII values.
2. group identical letter(s) if there are any.
3. then create 2d array/pointer using those letters & exclude similar rows.
4. display them.
__________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rich Cook