Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

After the following, what the char variable gchar equal? Char gchar = \"; in_str

ID: 3532515 • Letter: A

Question

After the following, what the char variable gchar equal? Char gchar = "; in_stream.get( gchar); in_stream.putback('X'); in_stream.get(gchar); An is a variable that has function associated with it. These functions are called . A is a type whose variables are objects. A stream is an example of an . The types ifstream and ofstream are examples of . T/F. When using the get function, you can allow the program to read the end of line? What is the putback function used for? What function is used to stop reading from the file? What is meant when we say a program dealing with files, that the files have two names? What are they, and how are they used? T/F After the external file is opened, the file is always referred to by naming the stream that is connected to the file? 1,True/False void functions return no values. Which of these would be a legal return statement for a void function (circle those that apply): return 0; return variable; return; no return at all all of the above 2, Is a call to a void functions a statement or expression?

Explanation / Answer

3. true

4.the function accesses the input sequence by first constructing asentryobject (withnoskipwsset totrue). Then (ifgood), it callssputbackc(c)on its associatedstream bufferobject (if any). Finally, it destroys thesentryobject before returning.

8. true

9. a) return 0;