What is the value in sentSize after line 3 is run?
```
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. 8
B. 0
C. 6
D. 40
D
You might also like to view...
To combine data from more than one table, you need to create a(n) ________ between the tables
Fill in the blank(s) with correct word
The Percent Style can have more places after the decimal than the default setting
Indicate whether the statement is true or false
Which of the following definitions is the best description of an orphan?
A) The last word of a paragraph split across a line break B) The location of a file preceding the filename C) The last line split from the paragraph across a page break D) The amount of white space around the edge of each page
If a member function of a class already provides all or part of the functionality required by a constructor or another member function then:
a. Copy and paste that member function’s code into this constructor or member function. b. Call that member function from this constructor or member function. c. That member function is unnecessary. d. This constructor or member function is unnecessary.