Recursion-Subsequences

how to print output in reverse order?
here’s my code

hey, don’t print your “out” in your function instead store them in a vector of string then print your vector in reverse order inside main() by iterating it from back,and count will be equal to your vector size. i have updated your code(https://ide.codingblocks.com/s/171605) hope it helps,thanx.