What is output by the following program?
#includeusing namespace std;void Rec(string word);int main(){ Rec ("abcde"); return 0;}//*******************void Rec (string word){ if (word.length () > 0) { cout << word.substr(0, 1); Rec (word.substr(1, word.length()-2)); cout << word.substr (word.length()-1, 1) << endl; }}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.