1.

What is the output of this program?
#include 
#include
using namespace std;
int main()
{
cout << setprecision(17);
double n = 0.2;
cout << n << endl;
return 0;
}

A. 0.20000000000000001
B. 0.2000000001
C. 0.200
D. 2.20000000000000001
E. None of these
Answer» B. 0.2000000001


Discussion

No Comment Found

Related MCQs