-
What is the output of this program?
#include <iostream>
#include <limits>
using namespace std;
int main( )
{
cout << numeric_limits<float> :: digits10 << endl;
cout << numeric_limits<double> :: digits10 << endl;
float f = 99999999;
cout.precision ( 10 );
cout << f << endl;
}
-
- 100000000
- 15
- 6
- All of above
- None of these
Correct Option: A
In this program, We are finding the number of decimal points that the type can represent without loss of precision.