Why should you use getline () for string data?

A. It removes the spaces between the words.
B. It reads all characters until the Enter key.
C. getline () isn’t made for strings.
D. It works the same as cin >>.


B. It reads all characters until the Enter key.

Computer Science & Information Technology

You might also like to view...

You can often set the autosave option to specify where and how frequently data is stored.

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

Computer Science & Information Technology

What is the value of s3 after the following code is executed?

``` var s1 = one, s2 = two, s3 = three; s1.concat(s2) s3 = s1; ``` a) one b) onetwo c) three d) onetwothree

Computer Science & Information Technology

The most common type of keyboard is the standard ________ format

Fill in the blank(s) with correct word

Computer Science & Information Technology

Lync gives businesses the option of instant messaging and online meetings in a(n) ________ environment

Fill in the blank(s) with correct word

Computer Science & Information Technology