adplus-dvertising
frame-decoration

Question

What is the output of this program?
    #include <iostream>
    #include <locale>
    using namespace std;
    int main()
    {
        locale mylocale("");
        cout.imbue( mylocale );
        cout << (double) 3.14159 << endl;
        return 0;
    }

a.

3.14

b.

3.14159

c.

Error

d.

None of the mentioned

Answer: (b).3.14159

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?