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