Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
Difficulty: 3/10
Date added: 9th of June 2008
In this exercise, write a safe and correct Divide function, that divides two doubles. For example, if this function would be called with 3.0 as a numerator and 4.0 as denominator, it should return 0.75.
Feel free to post your feedback about this exercise at Programmer's Heaven.
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.