Consider the following C++ code. What is the output? string str = "goofy"; string newStr = ""; for (int j = str.length()
Posted: Sun May 15, 2022 8:31 am
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