Consider the following C++ code. What is the output? string str = "goofy"; string newStr = ""; for (int j = str.length()
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Consider the following C++ code. What is the output? string str = "goofy"; string newStr = ""; for (int j = str.length()
Consider the following C++ code. What is the output? string str = "goofy"; string newStr = ""; for (int j = str.length()-1; j >= 0; i--) newStr = newStr + stil.substr(j, 1); cout « newStr << endl; a) goofy Ob) yfoog ) O c) & g d) y
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!