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...
When using wildcard characters in a query, [!charlist] will allow you to retrieve any character in a charlist
Indicate whether the statement is true or false
Computer Science & Information Technology
Of the printer types listed, which printer type would be the best and the quickest to produce several color copies of a contract for potential clients?
A) 3-D B) Thermal C) Laser D) Impact
Computer Science & Information Technology