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

1 Answer

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

int main(void)
{   
    printf("%d\n", (int)sizeof(unsigned int));
    printf("%u\n", 0); // min
    printf("%u\n", UINT_MAX);
	
    return 0;
}

   
/*
run:

4
0
4294967295

*/

 



answered Dec 11, 2016 by avibootz

Related questions

...