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;
}
β
Correct Answer: (D)
0.10000000000000001