There are several uses of the getline function. Assume the definition,Which one of these allows specification of the character on which input stop?

a)```
cout << “Enter a line of input \n”;
getline(cin, line1);
```
b)```
cout << “Enter a line of input \n”;
getline(cin, line1, ‘?’);
```
c)```
cout << “Enter a line of input \n”;
getline(cin, line1) >> line2;
```


b) reads a line of input up to the first question mark. To select another stop-
input character, replace the question mark.

Computer Science & Information Technology

You might also like to view...

__________ prevents either sender or receiver from denying a transmitted message. Thus, when a message is sent, the receiver can prove that the alleged sender in fact sent the message and when a message is received, the sender can prove that the alleged receiver in fact received the message.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Contactless payment is a popular use of UWB technology.

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

Computer Science & Information Technology

________ is the set of instructions that programmers have written in a higher-level language.

A. Executable code B. Base code C. Compiled code D. Source code

Computer Science & Information Technology

To display the IP address setup for all interfaces, you use the command ip address show all.

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

Computer Science & Information Technology