C displays both type of variables float and double upon to the six decimal places. it does not need to the precision of which the number is really collected.
The implementation of the float an double data type would be as it
Code:
#include <stdio.h>
main()
{
int Add = 100;
char Character = 'Z';
float Adj1 = 23.567;
double Number2 = 11e+23;
printf("Integer variable is %d\n", Add);
printf("Character is %c\n", Character);
printf("Float variable is %f\n", Adj1);
printf("Double variable is %e\n", Number2);
}
Bookmarks