
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:
Verified
Q26: C++ has a special name for the
Q29: C++ comes with a wealth of functions,
Q33: The functions get,ignore,and so on are members
Q34: Suppose that alpha,beta,and gamma are int variables
Q36: Suppose that ch1 and ch2 are char
Q39: The function _ returns the next character
Q39: Suppose that x = 1565.683,y = 85.78,and
Q40: Consider the following program segment.
Ifstream inFile; //Line
Q41: cin is called a(n)_ object.
Q43: The manipulator _ is used to output
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents