What is the value in wordInSentence after line 5 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. 9
B. 10
C. -1
D. 8


B

Computer Science & Information Technology

You might also like to view...

List the features of TCP.

What will be an ideal response?

Computer Science & Information Technology

All of a member's personal information and status updates are displayed on the ________ in chronological order

Fill in the blank(s) with correct word

Computer Science & Information Technology

A(n) ________ is a slide element that reserves a portion of a slide and serves as a container for text, graphics, and other slide elements

Fill in the blank(s) with correct word

Computer Science & Information Technology

The ____ key field is the linking field on the "many" side of the relationship.

A. record B. table C. link D. foreign

Computer Science & Information Technology