How to get the size, min and max of double Data Type in C++

1 Answer

0 votes
#include <iostream>

using namespace std;

int main()
{
	cout << sizeof(double) << endl;
	cout << DBL_MAX << endl;
	cout << DBL_MIN << endl;

	return 0;
}


/*
run:

8
1.79769e+308
2.22507e-308

*/

 



answered Dec 10, 2016 by avibootz

Related questions

1 answer 172 views
1 answer 169 views
1 answer 171 views
1 answer 166 views
1 answer 178 views
...