Solved

What Is the Output of the Following Statements

Question 30

Multiple Choice

What is the output of the following statements?
cout << setfill('*') ;
Cout << "12345678901234567890" << endl
Cout << setw(5) << "18" << setw(7) << "Happy"
<< setw(8) << "Sleepy" << endl;


A) 12345678901234567890
***18 Happy Sleepy
B) 12345678901234567890
***18**Happy**Sleepy
C) 12345678901234567890
***18**Happy Sleepy
D) 12345678901234567890
***18**Happy Sleepy**

Correct Answer:

verifed

Verified

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

Related Questions