What is displayed after line 7 is run?
Use the code below to answer the following questions. Assume it runs correctly
and all includes are present. The line numbers are for reference only.
1.
```
string new1, new2;
```
2.
```
string text1 = “C++”;
```
3.
```
string text2 = “math”;
```
4.
```
string text3 = “chocolate”;
```
5.
```
stringstream ss;
```
6.
```
ss << “I love” << text3 << “and” << text2;
```
7.
```
new1 = ss.str();
```
8.
```
cout << new1;
```
9.
```
st << text1 << “is easy to learn!”;
```
10.
```
new2 = st.str();
```
11.
```
cout << st;
```
A. I love chocolate and math
B. I love C++
C. I love
D. I love math and chocolate.
A. I love chocolate and math
You might also like to view...
When a document is protected, most of the buttons on the Home tab are:
A) hidden. B) dimmed. C) active. D) optional.
Keyboard shortcuts should be assigned to a macro only after it is finished
Indicate whether the statement is true or false