#include <stdio.h>
#include <limits.h>
int main(void){
printf("Type Size Min Max\n----------------------------------------------------------------------\n");
printf("%-20s%-10d%-20ld%-20ld\n", "long", sizeof(long), LONG_MIN, LONG_MAX);
printf("%-20s%-10d%-20lu%-20lu\n", "unsigned long", sizeof(long), 0, ULONG_MAX);
return 0;
}
where is double? that is, the LONG_MIN variable is in the limit of the .h file. what type of double?
int i, min, max;
for (i = 1.0; i > 0; ++i)
{
max = i;
};
min = i;
printf ("int: min: %d max: %d \n", min, max);
as for float and double? how does min compute this variable? sorry bad english
source
share