Vidyalelo
C++ Programming · Q281

C++ miscellaneous

Programming · C++ Programming · question 281

Q281

What will be the output of the following C++ code? #include #include using namespace std; int main () try double value1, value2; istream_iterator eos; istream_iterator iit (cin); if (iit != eos) value1 = *iit; iit++; if (iit != eos) value2 = *iit; cout << (value1 * value2) << endl; catch (...) cout << "Unknown exception: " << endl; return 0;

A.
10
B.
45
C.
It will print the multiplied value of the input
Answer
D.
Exception

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board