i attended an intervew and i got a C program question where i need to input a word and print all combinations of the word
say input= abc
output=
bac
acb
cab
cba...
All i could manage was to revere the word .. abc to cba and i was eliminated in the interview
Now i need to learn the logic for this .. kindly provide a C code to achive this output
say input= abc
output=
bac
acb
cab
cba...
All i could manage was to revere the word .. abc to cba and i was eliminated in the interview
Now i need to learn the logic for this .. kindly provide a C code to achive this output