How to get max int in C++

1 Answer

0 votes
#include <iostream>
#include <climits>
   
int main()
{
    int max = INT_MAX; 

    std::cout << max << "\n";
}

   
   
/*
run:
           
2147483647
      
*/

 



answered Dec 29, 2023 by avibootz

Related questions

2 answers 203 views
2 answers 186 views
186 views asked Jan 3, 2021 by avibootz
1 answer 189 views
3 answers 163 views
1 answer 142 views
1 answer 87 views
87 views asked Nov 11, 2022 by avibootz
...