Kagalive icon

Limits of ints

Kagalive | PRO | 10/01/20 02:40:46 AM UTC (Edited) | 0 ⭐ | 1930 👁️ | Never ⏰ | []
C++ |

300 B

|

None

|

0 👍

/

0 👎

#include <iostream>
#include <limits>
using namespace std;
 
int main() 
{
   cout << "int type\n";
   cout << "--------\n";
   cout << " Size: " << sizeof(int) << " bytes\n";
   cout << " Max: " << numeric_limits<int>::max() << '\n';
   cout << " Min: " << numeric_limits<int>::min() << '\n';
}
 

Comments