What output will be produced when the following lines are executed,
assuming the file list.dat contains the data shown (and assuming the
lines are embedded in a complete and correct program with the proper
include directives)?
ifstream ins;
ins.open("list.dat");
int count = 0, next;
while (ins >> next)
{
count++;
cout << next << endl;
}
ins.close( );
cout << count;