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
Computer Science & Information Technology
You might also like to view...
When a task is ________ in Project 2013's Entry table, the task moves to the left, making it a higher level task in a WBS
A) categorized as a subtask B) summarized C) outdented D) indented
Computer Science & Information Technology
Like TKIP, CCMP provides two services: message integrity and ________.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology