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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 29 times
1. What will be displayed by test(3); ? void test(int n) { if(n== 1) cout << "*"; else { test(n-1); cout << "$": }
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply