Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

2\" (12%) Consider the following questions for the given input data March 21, 20

ID: 3734501 • Letter: 2

Question

2" (12%) Consider the following questions for the given input data March 21, 2018 (1) If the input statement is given as below What is contained in each of the string variables after the statement is executed? cin >>string1 >> string2; (2) If the input statement is given as below getline(cin, string1); What is contained in each of the string (string) variable after the statement is executed? (3) If the input statement is given as below (where the type of each variable is given by its name) cin >> string1 >> int1 >>char1 >> string2; What is contained in each of the variables after the statement is executed?

Explanation / Answer

1).for string1=MARCH 21

string2=2018.

2)String1=MARCH 21,2018.

3)String1=MARCH

int1=21

char1=,

string2=2018

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote