A
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;
}
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 - Option(C)
- Views: 37
- Filed under category C++
- Hashtags:
Discusssion
Login to discuss.