diff --git a/floatsize.c b/floatsize.c index afa0efe..caca0ac 100644 --- a/floatsize.c +++ b/floatsize.c @@ -1,8 +1,11 @@ #include -#include +#include -float main() { +int main() { printf("Storage size for float : %d \n", sizeof(float)); + printf("Minimum float positive value: %E\n", FLT_MIN ); + printf("Maximum float positive value: %E\n", FLT_MAX ); + printf("Precision value: %d\n", FLT_DIG ); return 0; } \ No newline at end of file