Hi everybody,
i want to write a small program, which shows me the biggest and
smallest number in dependance of the data type.
For int the command could be:
printf("\n%20s\ t%7u\t%13i\t%13 i","signed int",sizeof(sig ned
int),INT_MIN,IN T_MAX);
But what do I have to do when I want to print out the numbers of data
type "long double".
I tried
printf("\n%20s\ t%7u\t%13Lf\t%1 3Lf","long double",sizeof( long
double),LDBL_MI N,LDBL_MAX);
but this results in
long double 12 0.000000 -1.#QNAN0
Does anybody has a solution.
I tried this with Bloodshed using the gnu-compiler.
Thanks for your help!
i want to write a small program, which shows me the biggest and
smallest number in dependance of the data type.
For int the command could be:
printf("\n%20s\ t%7u\t%13i\t%13 i","signed int",sizeof(sig ned
int),INT_MIN,IN T_MAX);
But what do I have to do when I want to print out the numbers of data
type "long double".
I tried
printf("\n%20s\ t%7u\t%13Lf\t%1 3Lf","long double",sizeof( long
double),LDBL_MI N,LDBL_MAX);
but this results in
long double 12 0.000000 -1.#QNAN0
Does anybody has a solution.
I tried this with Bloodshed using the gnu-compiler.
Thanks for your help!
Comment