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

1 Answer

0 votes
#include <stdio.h> 
#include <limits.h>

int main(void)
{   
    printf("%d\n", (int)sizeof(signed char));
    printf("%d\n", SCHAR_MIN);
    printf("%d\n", SCHAR_MAX);
	
    return 0;
}

   
/*
run:

1
-128
127

*/

 



answered Dec 11, 2016 by avibootz

Related questions

1 answer 200 views
1 answer 209 views
1 answer 223 views
1 answer 162 views
1 answer 168 views
...