thax very much quzah
s.s.harish
thax very much quzah
s.s.harish
>printf("%lf",converted[i-1]);
Just for the record, %lf is wrong too. printf uses %f for both float and double, and %Lf for long double. In C89, %lf is undefined behavior and in C99, %lf has been added to accept long double. This is contrary to scanf, where %f takes a pointer to float and %lf takes a pointer to double.
Come to think of it, you really should avoid floating-point wherever possible to save yourself a lot of trouble.
My best code is written with the delete key.
thank u prelude for letting me know about the C89 and C99
s.s.harish