My code is not showing any output
You cannot compare C style string (character array) directly using >, < or ==. For that you have to use strcmp function. But if you use the STL string, then that type of comparison is allowed.
Also It is given that the output must be in sorted order. Your code will generate the correct permutations but it is not guaranteed that your output will be sorted. For that…instead of printing in base case…you must push it in a vector in the base case.You should then sort the resulting vector in the main before printing the final result.
Here is a reference code https://ide.codingblocks.com/s/295870