user8188
0
Q:

c++ min int

// C++ program to print values of INT_MAX 
// and INT_MIN 
#include<bits/stdc++.h> 
int main() 
{ 
   printf("%d\n", INT_MAX); 
   printf("%d", INT_MIN); 
   return 0; 
} 
2
#include <algorithm>    // std::min
std::min(1,2);
0
#include <limits>

int imin = std::numeric_limits<int>::min(); // minimum value
int imax = std::numeric_limits<int>::max(); // maximum value (2147483647)
1
2147483647
  unsigned long long int = 18 446 744 073 709 551 615
3
int min = INT_MIN;
1

New to Communities?

Join the community