What is the difference between backtracking and recursion? How is this program working?
void generate_all(int n) { if(n<1) printf("%s\\n", ar);
Recursion -
Backtracking -