Supposed x and y are int variables and symbol is a char variable. Assume the following input
Fantastic news! We've Found the answer you've been seeking!
Question:
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;
Related Book For
Posted Date: