Your C needs a C99 or C++ compiler to compile it.

> when i tried to use printf to display the arrays the last digits of the values where different.
Welcome to the world of floating point numbers.
http://cch.loria.fr/documentation/IEEE754/
David Goldberg's paper is worth a read even if you don't get all the detail

> maybe is the float's accuracy..maybe i should try double..
Yes, that would move the problem from the 6th digit to the 15th digit.