Solved

What Output Will Be Produced When the Following Code Is

Question 26

Essay

What output will be produced when the following code is executed? (Assume these lines are embedded in complete,correct programs,with proper #include directives. )
cout << "*";
cout.width(5);
cout << 123
<< "*" << 123 << "*" << endl;
cout << setw(5)<< 123 << "*" << 123 << "*" << endl;

Correct Answer:

verifed

Verified

Using g++,output is ...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions