How to get the size, min and max of int Data Type in C++

1 Answer

0 votes
#include <iostream>

using namespace std;

int main()
{
	cout << sizeof(int) << endl;
	cout << INT_MAX << endl;
	cout << INT_MIN << endl;
	
	return 0;
}


/*
run:

4
2147483647
-2147483648

*/

 



answered Dec 10, 2016 by avibootz

Related questions

...