Vidyalelo
C++ Programming · Q83

Variables and Data Types in C++

Programming · C++ Programming · question 83

Q83

What will be the output of the following C++ code? #include #include using namespace std; int main() cout << setprecision(17); double d = 0.1; cout << d << endl; return 0;

A.
0.11
B.
0.10000000000000001
Answer
C.
0.100001
D.
compile time error

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board