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 196 views
1 answer 188 views
1 answer 191 views
1 answer 202 views
1 answer 152 views
1 answer 150 views
...