C program to find all permutations of a string

C program to find all permutations of a string

Output:

Enter the string to permute: abc
The permutations of input string 'abc' are:
abc
acb
bac
bca
cba
cab

Implementation: