1. Engineering
  2. Computer Science
  3. please explain in terms of floating point precision...

Question: please explain in terms of floating point precision...

Question details

Please explain in terms of floating point precision.#include 〈stdio.h〉 int main)f double x = 1, y = , while ((((x + 1.0) - x) - 1.0) 0.0) x *= 2.0; printf ( Xusu%. 15euu\n , x) ; while ((((x y) -x) -y) != 0.0) + y +-1.0; printf (Yutu%. 15eu\n , y) ; return 0; (2 points) Explain the output (2 points) Replace double by float and run it again. Explain the output

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution