Consider the following declaration:char charArray[51];char discard;Assume that the input is:Hello There!How are you?

What is the value of discard after the following statements execute?cin.get(charArray, 51);cin.get(discard);

A. discard = ' ' (Space)
B. discard = '!'
C. discard = '\n'
D. discard = '\0'


Answer: C

Computer Science & Information Technology

You might also like to view...

In the Intel architecture, the __________ register contains the offset (or displacement) in the current code segment for the next instruction to be executed.

a. instruction counter b. instruction pointer c. PSW d. L1 code

Computer Science & Information Technology

Services are stopped automatically and should not attempt to stop themselves.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Match the following buttons or icons to their title

I. II. III. IV. V. A. Fill & Line B. Pictures C. Insert Chart D. Effects E. Borders

Computer Science & Information Technology

User support managers monitor several aspects of their support operation, including the percentage of calls that were abandoned by the user.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology