Q. What is the output of the following C++ code?
Code:#include <iostream>
using namespace std;
main()
{
double x = 15.564702;
float y = 5.99;
int z ,w;
z = (int) x;
w = (int) y;
cout << z <<' '<< w;
return 0;
}
β
Correct Answer: (C)
15 5