What does the code in line 1 do?
```
1 string sentence = “C++ is my favorite programming language.”.;
2 string word; = “favorite”
3 int sentSize = sentence.size();
4 int wordSize = word.size();
5 int wordInSentence = sentence.find(word);
```
A. Creates a string called sentence.
B. Initializes a string called sentence.
C. Both A & B
D. Neither. Strings aren’t initialized that way.
C
You might also like to view...
An app consists of databases designed to store information.
Answer the following statement true (T) or false (F)
Cloud computing is the concept of storing, accessing, and editing files that are stored in another physical location
Indicate whether the statement is true or false
Sorting in a report can be done on only one field
Indicate whether the statement is true or false
The Quick Access Toolbar can be customized
Indicate whether the statement is true or false