B
Q. What will be the output of the following C++ program?
Code:
#include <iomanip>
#include <iostream>
using namespace std;
int main()
{
cout << setprecision(17);
double d = 0.1;
cout << d << endl;
return 0;
}
#include <iostream>
using namespace std;
int main()
{
cout << setprecision(17);
double d = 0.1;
cout << d << endl;
return 0;
}
- Correct Answer - Option(D)
- Views: 193
- Filed under category C++
Discusssion
Login to discuss.