What is displayed after line 7 is run?
```
string new1, new2;
1 string text1 = “C++”;
2 string text2 = “math”;
3 string text3 = “chocolate”;
4 stringstream ss;
5 ss << “I love” << text3 << “and” << text2;
6 new1 = ss.str();
7 cout << new1;
8 st << text1 << “is easy to learn!”;
9 new2 = st.str();
10 cout << st;```
A. I love chocolate and math
B. I love C++
C. I love
D. I love math and chocolate.
A
Computer Science & Information Technology
You might also like to view...
How do you toggle the Quick Selection tool to subtraction mode?
What will be an ideal response?
Computer Science & Information Technology
A string array
a) stores an actual string in each of its elements b) can only provide access to strings of a certain length c) is actually an array of pointers d) is always less memory efficient than an equivalent dou-ble-subscripted array
Computer Science & Information Technology