1#include <limits>
2
3int imin = std::numeric_limits<int>::min(); // minimum value
4int imax = std::numeric_limits<int>::max(); // maximum value (2147483647)
1// C
2#include <limits.h>
3unsigned int max_unsigned_int_size = UINT_MAX;
4
5// C++
6#include <limits>
7unsigned int max_unsigned_int_size = std::numeric_limits<unsigned int>::max();
1x = 1, y = 2;
2fmax(x , y);
3//if you want to print it right away:
4cout << fmax(x , y);
5//if you want to store it:
6int j = fmax(x, y);
7cout << j;
8
9//output 2