What output is sent to the file out.dat by the following code, assuming these lines of code are embedded in a correct program?

```
ofstream fout;
fout.open("out.dat");
fout << "*" << setw(5) << 123 << "*"
<< 123 << "*" << endl;
fout.setf(ios::showpos);
fout << "*" << setw(5) << 123 << "*"
<< 123 << "*" << endl;
fout.unsetf(ios::showpos):
fout.setf(ios::left);
fout << "*" << setw(5) << 123 << "*"
<< setw(5) << 123 << "*" << endl;
```


Using g++, output sent to out.dat is the following, after embedding the code in a correct program:
123*123*
+123*+123*
*123*

Computer Science & Information Technology

You might also like to view...

A table of keyed elements which uses a hash function to located positions in the table is a(n):

A. keyed table B. function table C. hash table D. chained table

Computer Science & Information Technology

Every JComponent has an instance variable called that enables the object to maintain references to all its registered listeners.

a. registeredListenerList b. listenerList c. registeredList d. eventListenerList

Computer Science & Information Technology

____ participate in alpha and beta test cycles of software.

A. QA specialists B. Manufacturing technicians C. Computer engineers D. Sales reps

Computer Science & Information Technology

The first IM program was invented in ________

A) 1999 B) 1996 C) 2006 D) 2002

Computer Science & Information Technology