10. Basic idea of real numbers

 

#include<stdio.h>

void main()

{

        float f = 234.56;

        double d = 234.56;

        printf("%d\n",sizeof(float));

        printf("%d\n",sizeof(double));

        printf("%f %g %e \n",f,f,f);

        printf("%lf %g %e \n",d,d,d);

}

Comments