#include void swap(char *m,char *n) { char temp=*m; *m=*n; *n=temp; } void permutations(char *arr,int k,int n) { int i,j,temp; if(k==n-1){ for(i=0;i