7. [15 points] Assume ASCII representation of characters and the following function: void g(char ch, int n) { if (n<=0)
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
7. [15 points] Assume ASCII representation of characters and the following function: void g(char ch, int n) { if (n<=0)
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. }
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!