Solved

What Output Is Produced by the Following Code,assuming These Lines

Question 22

Essay

What output is produced by the following code,assuming these lines of code are embedded in a correct program?
cout << "*" << setw(5)<< 123;
cout.setf(ios::left);
cout << "*" << setw(5)<< 123;
cout.setf(ios::right);
cout << "*" << setw(5)<< 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