Referring to the sample code above, what is the displayed , output if the input string given were: "5 10 Sample Word 15 20"?

Q

int I, j;
string s;
cin >> I >> j >> s >> s >> I;
cout << I << " " << j << " "<< s << " "<< I;

Referring to the sample code above, what is the displayed
output if the input string given were: "5 10 Sample Word 15 20"?
1) 5 10 Sample Word 15 20
2) 15 20 Sample Word 15
3) 5 10 Sample Word 15
4) 15 10 Word 15
5) 15 20 Sample Word 20

✍: Guest

A
(This question has not been answered yet. If you know the answer, please share it in a comment below.)

2012-04-23, 2840👍, 0💬