I can not understand the output generated by the following program:
#include <stdio.h>
main()
{
float d =245.3;
char c = 'A';
printf("d = %f",d);
d = d+c;
printf("\nd = %f",d);
getch();
return 0;
}
Output:
d = 245.3000003
d = 310.2999988
Though d was 245.3, but it is printing 245.3000003. And after adding 65, it is not accurate.