Logo 
Search:

C++ Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C++ ProgrammingRSS Feeds

What would be the output of the following code? - Select option

  Shared By: Harrison Evans    Date: Jun 29    Category: C++ Programming    Views: 748

Answer:

cout.fill(‘$’);
cout.setf(ios::left, ios:: adjustfield);
cout.width(20);
cout<< “I/O Operations”;

Options

a) Operations$$$
b) I/O Operations
c) I/O Operations$$$$$$
d) I/O Operations$$$$$$$

Answer : c) I/O Operations$$$$$$

Share: 
 



Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: