Storage size and range of floating point datatype

C Programming Language / Data Types in C Language

1177

Program:

#include"stdio.h"
#include"float.h"

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;
}

Output:

Storage size for float : 4
Minimum float positive value: 1.175494E-038
Maximum float positive value: 3.402823E+038
Precision value: 6
Press any key to continue . . .

This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.