Supposed x and y are int variables and symbol is a char variable. Assume the following input data:
38 36 * 67
24 $ 55 # 34
# & 63 85
What value (if any) is assigned to the variables x, y and symbol after each of the following statements are executed (Use the same input from above for each statement
cin >> x >> y;
cin.ignore(100, ‘n’
cin >> symbol;
cin >>x;
cin.ignore(100,’*’);
cin >> y;
cin.get(symbol);
cin >> y;
cin.ignore(100,’n’);
cin >> x >> symbol;
cin.get(symbol);
cin >> x;
cin.ignore(100,’*’);
cin >> y;
cin.ignore(100,’n’);
cin >> x>>symbol;
cin.ignore(100, ‘&’);
cin >> y;
Enjoy 24/7 customer support for any queries or concerns you have.
Phone: +1 213 3772458
Email: support@gradeessays.com