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

1 Answer

0 votes
#include <iostream>

using namespace std;

int main()
{
	cout << sizeof(long long) << endl;
	cout << LLONG_MIN << endl;
	cout << LLONG_MAX << endl;

	return 0;
}


/*
run:

8
-9223372036854775808
9223372036854775807

*/

 



answered Dec 12, 2016 by avibootz

Related questions

1 answer 153 views
1 answer 190 views
1 answer 232 views
1 answer 175 views
...