Essay
Assume the following code fragment is executed while embedded in a complete,correct program.
char c1,c2,c3,c4;
cout << "Enter a line of input \n";
cin.get(c1);
cin.get(c2);
cin.get(c3);
cin.get(c4);
cout << c1 << c2 << c3 << c4 << "END OF OUTPUT";
cout << endl;
If the dialog between user and program is as follows,give the rest of the dialog.(Here,<cr> means the user presses the return key. )Explain the results.
Enter a line of input
abc<cr>
Correct Answer:

Verified
Correct Answer:
Verified
Q2: You don't need using directives or using
Q3: Write a void function called copy_to_screen that
Q4: When a program sends data from itself
Q5: What is sent to screen when the
Q6: Write a code segment that will read
Q7: C++ uses the system file name for
Q8: The _ fstream member function opens a
Q9: A file is automatically closed when a
Q10: A stream is a flow of data
Q11: What will be the output from