1.

What is the output of this program?
#include 
#include
using namespace std;
int main ()
{
try {
double val1, val2;
istream_iterator eos;
istream_iterator iit (cin);
if (iit != eos)
val1 = *iit;
iit++;
if (iit != eos)
val2 = *iit;
cout << (val1 * val2) << endl;
}
catch (...) {
cout << "Unknown exception: " << endl;
}
return 0;
}

A. Compilation Error
B. Runtime Error
C. Garbage Value
D. It will print the multiplied value of the input
E. Exception
Answer» E. Exception


Discussion

No Comment Found

Related MCQs