Suppose that ch1 and ch2 are char variables and the input is:WXYZWhat is the value of ch2 after the following statements execute?cin.get(ch1);cin.putback(ch1);cin >> ch2;
A. W
B. X
C. Y
D. Z
Answer: A
You might also like to view...
Inside a function definition for a member function of an object with data member x, which of the following is not equivalent to this->x:
a. *this.x b. (*this).x c. x d. None of the above are equivalent.
An agency called Instant Cover supplies part-time/temporary staff to hotels within Scotland. The table shown in Figure 14.20 lists the time spent by agency staff working at various hotels. The National Insurance Number (NIN) is unique for every member of staff.
What will be an ideal response?
A function is invoked with a(n) ________ .
Fill in the blank(s) with the appropriate word(s).
The start and compare arguments of the InStr function are optional, but stringexpr1 and stringexpr2 are not
Indicate whether the statement is true or false