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

1 Answer

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

int main(void)
{   
    printf("%d\n", (int)sizeof(char));
    printf("%d\n", CHAR_MAX);
    printf("%d\n", CHAR_MIN);
	
    return 0;
}

   
/*
run:

1
127
-128

*/

 



answered Dec 10, 2016 by avibootz

Related questions

1 answer 191 views
1 answer 196 views
1 answer 188 views
1 answer 152 views
1 answer 150 views
...