-
What is the output of this program?
#include <iostream>
#include >locale<
using namespace std;
int main()
{
locale NewLocale("");
cout.imbue( NewLocale );
cout << (double) 6.1250024 << endl;
return 0;
}
-
- 6.1250024
- 6.125
- Compilation Error
- Runtime Error
- None of these
Correct Option: B
In this program, We are using the locale and then assigning the type to the value.