difference between %e/E, %f/F and %g/G in program C
void main(int argc, char* argv[])
{
double a = 4.5;
printf("=>>>> below is the example for printf 4.5n");
printf("%%e %en",a);
printf("%%f %fn",a);
printf("%%g %gn",a);
printf("%%E %En",a);
printf("%%F %Fn",a);
printf("%%G %Gn",a);
double b = 1.79e308;
printf("=>>>> below is the exbmple for printf 1.79*10^308n");
printf("%%e %en",b);
printf("%%f %fn",b);
printf("%%g %gn",b);
printf("%%E %En",b);
printf("%%F %Fn",b);
printf("%%G %Gn",b);
double d = 2.25074e-308;
printf("=>>>> below is the example for printf 2.25074*10^-308n");
printf("%%e %en",d);
printf("%%f %fn",d);
printf("%%g %gn",d);
printf("%%E %En",d);
printf("%%F %Fn",d);
printf("%%G %Gn",d);
}