Z
Zero
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%13i","signed int",sizeof(signed
int),INT_MIN,INT_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%13Lf","long double",sizeof(long
double),LDBL_MIN,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%13i","signed int",sizeof(signed
int),INT_MIN,INT_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%13Lf","long double",sizeof(long
double),LDBL_MIN,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!