Live quiz

cpp - Part 28

Question 1 of 25 Hints left: 3
Q1

What will be the output of the following C++ code? #include <iostream> #include <string> using namespace std; int main () { string str ("Steve jobs"); cout << str.capacity() << "\n"; return 0; }

  • A
  • B
  • C
  • D