Question

Q2: Assuming that text is a variable of type string, what will be the contents of text after the statement cin >> text; is executed if the user types Hello World! then presses Enter?
a. "H"
b. "Hello"
c. "Hello World"
d. "Hello World!"

Answer

This answer is hidden. It contains 7 characters.