All permutations being printed

There was some issue in comparing the character arrays, so I rewrote your code by considering them as strings. Now it works fine, please take a look https://ide.codingblocks.com/s/187311
Also they needed to be printed in ascending order , so I made a vector to store all the correct output strings and sorted them in the main function. So working with strings is easier in this case.

@mohammadabdullahjawwad If you don’t have any further queries please mark the doubt as resolved