Search⌘ K
AI Features

Quiz: String Algorithms

Practice and reinforce key string concepts through quiz questions.

We'll cover the following...

String Algorithms

1.

What is the output of the following code?

int main() {
    string s = "bless";
    cout << s[s.size() - 2] << endl;
    return 0;
}
A.

b

B.

l

C.

e

D.

s


1 / 7
...