Public domain
#include <stdio.h>
#include <limits.h>
int main()
{
int i;
i=1234567890;
fprintf(stdout, "This is an 'int' number : %d\n", i);
fprintf(stdout, "Number of bits in an 'integer' type : %d\n", sizeof(int) * 8 );
fprintf(stdout, "Minimum and maximum values a 'signed int' can hold : %d %d \n",
INT_MIN, INT_MAX);
fprintf(stdout, "Minimum and maximum values an 'unsigned int' can hold : 0 %u \n",
UINT_MAX);
return 0;
}
This is an 'int' number : 1234567890
Number of bits in an 'integer' type : 32
Minimum and maximum values a 'signed int' can hold : -2147483648 2147483647
Minimum and maximum values an 'unsigned int' can hold : 0 4294967295
BY: Pejman Moghadam
TAG: c, data-type
DATE: 2011-02-28 16:50:00