Q48
What will be the output of the following C++ code? #include #include using namespace std; int main () std::string str ("Example."); str.back() = '!'; std::cout << str << endl; return 0;
A.
Example.!
B.
Example.
C.
Example!
AnswerD.
Example!.
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board