
What is the output of the following statements?
cout << "123456789012345678901234567890" << endl
Cout << setfill('#') << setw(10) << "Mickey"
<< setfill(' ') << setw(10) << "Donald"
<< setfill('*') << setw(10) << "Goofy" << endl;
A) 123456789012345678901234567890
####Mickey Donald*****Goofy
B) 123456789012345678901234567890
####Mickey####Donald*****Goofy
C) 123456789012345678901234567890
####Mickey####Donald#####Goofy
D) 23456789012345678901234567890
****Mickey####Donald#####Goofy
Correct Answer:
Verified
Q24: Suppose that ch1 and ch2 are char
Q27: In C++, the dot is an operator
Q28: Suppose that x = 25.67,y = 356.876,and
Q29: In the C++ statement,
cin.get(u);
u must be a
Q29: C++ comes with a wealth of functions,
Q31: The stream function _ lets you put
Q33: The functions get,ignore,and so on are members
Q34: Suppose that alpha,beta,and gamma are int variables
Q38: _ is a parameterized stream manipulator.
A) endl
B)
Q40: Suppose that outFile is an ofstream variable
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