What happens when you attempt to compile and run the following code?
#include <iostream>
#include <iomanip>
using namespace std;
int main ()
{
float f = 10.126;
cout.unsetf(ios::floatfield);
cout<<showpoint<<f<<fixed<<" "<<setprecision(2)<<f<<endl; return 0;
}
Program outputs:
Comments