Page 1 of 1

7. [15 points] Assume ASCII representation of characters and the following function: void g(char ch, int n) { if (n<=0)

Posted: Mon Jun 06, 2022 4:32 pm
by answerhappygod
7 15 Points Assume Ascii Representation Of Characters And The Following Function Void G Char Ch Int N If N 0 1
7 15 Points Assume Ascii Representation Of Characters And The Following Function Void G Char Ch Int N If N 0 1 (37.81 KiB) Viewed 26 times
7. [15 points] Assume ASCII representation of characters and the following function: void g(char ch, int n) { if (n<=0) { cout << endl; } else { g(ch-1,n-1); cout << ch; g(ch+1, n-1); } What output will be produced by the function call below? Write your final answer on the provided line. g('M', 2) Output: Use \n to indicate when endl is output. }