What is the output of the following programs?
#include <iostream>#include <string>using namespace std;void function(string, int, int);int main( ){ string mystr = "Hello"; cout ≪ mystr ≪ endl; function(mystr, 0, mystr.size( )); return 0;}void function(string str, int pos, int size){ if (pos<size) { function(str, pos + 1, size); cout ≪ str[pos]; }}
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.