Question
1.
#include
2.
#include
3.
using namespace std;
4.
int main ()
5.
{
6.
string str ("Ubuntu");
7.
cout
What is the output of this program?
1.
#include
2.
#include
3.
using namespace std;
4.
int main ()
5.
{
6.
string str ("Ubuntu");
7.
cout
Answer: Option C
Was this answer helpful ?
In this program, We are printing the capacity and max size of the string.
Output:
$ g++ stri5.cpp
$ a.out
61073741820
Was this answer helpful ?
Submit Solution