Vidyalelo
C++ Programming · Q53

Arrays and Strings in C++

Programming · C++ Programming · question 53

Q53

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

A.
9
B.
10
C.
11
D.
Not Fix
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board