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

1 Answer

0 votes
#include <iostream>

using namespace std;

int main()
{
	cout << sizeof(signed char) << endl;
	cout << SCHAR_MIN << endl; 
	cout << SCHAR_MAX << endl;

	return 0;
}


/*
run:

1
-128
127

*/

 



answered Dec 11, 2016 by avibootz

Related questions

1 answer 326 views
1 answer 291 views
1 answer 327 views
1 answer 328 views
1 answer 242 views
1 answer 248 views
...