#include <stdio.h>
#include <float.h>
int main () {
printf("storage size of long double %d n", sizeof(long double));
printf("minimum long double positive value of %e n", LDBL_MAX);
printf("maximum long double positive value of %e n", LDBL_MIN);
printf("Precision value of %d", LDBL_DIG);
retu 0;
}
Here's the output
Success time: 0 memory: 2160 signal:0
storage size of long double 12
maximum long double positive value of -nan
minimum long double positive value of -0.000000e+00
Precision value of 18
float 4 byte 1.2E-38 to 3.4E+38 6 decimal places
double 8 byte 2.3E-308 to 1.7E+308 15 decimal places
long double 10 byte 3.4E-4932 to 1.1E+4932 19 decimal places
i am getting write value for float and double but not with long double, can you tell me what i am doing wrong?
