Permutations of a String Programming Software Development by theausum …;); scanf("%d",&r); printf("The Following Permuations are possible : \n\n"); permute(str,l,1,r… Permutations of a String Programming Software Development by theausum …;); scanf("%d",&r); printf("The Following Permuations are possible : \n\n"); permute(str,l,1,r… Re: Permutations of an N element array Programming Software Development by iamthwee Yes so your example neither generates permuations or combinations. HAve you realised this yet? [code] #include <… Re: Permutations of a String Programming Software Development by Salem > str[pos-1]=str[pos-1]+str[i]-(str[i]=str[pos-1]); Perhaps use your swap function, with a temporary, rather than this over elaborate mess?