Page 1 of 1

1. What will be displayed by test(3); ? void test(int n) { if(n== 1) cout << "*"; else { test(n-1); cout << "$": }

Posted: Mon May 09, 2022 7:15 am
by answerhappygod
1 What Will Be Displayed By Test 3 Void Test Int N If N 1 Cout Else Test N 1 Cout 1
1 What Will Be Displayed By Test 3 Void Test Int N If N 1 Cout Else Test N 1 Cout 1 (8.88 KiB) Viewed 30 times
1. What will be displayed by test(3); ? void test(int n) { if(n== 1) cout << "*"; else { test(n-1); cout << "$": }