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