Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 995c90d commit 0baa2cbCopy full SHA for 0baa2cb
int_max_min.cpp renamed to float_int_max_min.cpp
@@ -1,5 +1,6 @@
1
#include <iostream>
2
-#include <climits>
+#include <climits> //INT_MAX
3
+#include <cfloat> //FLT_MAX
4
5
using namespace std;
6
@@ -9,6 +10,8 @@ int main()
9
10
{
11
12
int a = INT_MAX, b = INT_MIN;
13
+ float c = FLT_MAX, d = FLT_MIN;
14
cout << a << " " << b << endl; //2147483647 -2147483648
15
+ cout << c << " " << d << endl; //3.40282e+38 1.17549e-38
16
return 0;
17
}
0 commit comments