Select the correct option to test your answer:
More Computer Questions
What is the function of folder?
The first step in database development is which of the following?
What is the time complexity of Bubble Sort in the average case?
What is the method used to define a class method in Ruby?
What will be the output of the following code? #include <iostream> #include <string> using namespace std; void func1(string input,string output) { if(input.length()==0) { cout<<output<<","; return; } for(int i=0;i<=output.length();i++) func1(input.substr(1),output.substr(0,i) + input[0] + output.substr(i)); } int main() { char str[] = "AB"; func1(str, ""); return 0; }