C++ MQCs with Explanation (CHAPTER 4: FUNCTIONS IN C++)

Which of the following will return the value –8.0 given the value of x to be –8.5?

  1. fabs(x)
  2. ceil(x)
  3. floor(x)
  4. all the above



Answer: 
Option c: floor(x)

Explanation Here

Post a Comment

0 Comments