Given the following code. The input file, in.dat, is a copy of the program code in this problem. How will the output file, out.dat, differ from the input file?

```
// file: testQuestion.cc
// test question: copy files: in.dat to out.dat
// in.dat is a copy of a file containing this code.
// use EOF to terminate copy loop
#include
#include // for exit()
using namespace std;

int main()
{
ifstream in;
ofstream out;
in.open("in.dat");
out.open("out.dat");
while(in >> ch)
out << ch;
return 0;
}
```


The code line
in >> ch
will ignore all white space (blanks, tabs, end of line) in the input file. The output in the file, out.dat will be nearly useless. For example, every variable declaration will have the necessary space between the type and the identifier removed.

Computer Science & Information Technology

You might also like to view...

What is an operating system?

What will be an ideal response?

Computer Science & Information Technology

When a program’s logic is tied to its physical data structure, changing that structure will almost certainly require changing the program, a problem called data __________.

a. redundancy b. structuring c. dependency d. The premise of this question is false.

Computer Science & Information Technology

Sara, a security analyst, suspects that a rogue web server is running on the network. Which of the following would MOST likely be used to identify the server's IP address?

A. Port scanner B. Telnet C. Traceroute D. Honeypot

Computer Science & Information Technology

Converting a physical address to a pair of latitude and longitude coordinates is known as __________.?

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology