Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0baa2cb

Browse files
float max min
1 parent 995c90d commit 0baa2cb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

int_max_min.cpp renamed to float_int_max_min.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include <iostream>
2-
#include <climits>
2+
#include <climits> //INT_MAX
3+
#include <cfloat> //FLT_MAX
34

45
using namespace std;
56

@@ -9,6 +10,8 @@ int main()
910
{
1011

1112
int a = INT_MAX, b = INT_MIN;
13+
float c = FLT_MAX, d = FLT_MIN;
1214
cout << a << " " << b << endl; //2147483647 -2147483648
15+
cout << c << " " << d << endl; //3.40282e+38 1.17549e-38
1316
return 0;
1417
}

0 commit comments

Comments
 (0)