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

The following is the list of function declarations. Which one of them will be invoked by the function call statement cout <

  1. int mul(int a, int b);
  2. double mul(float a, float b);
  3. double mul(int a, double b);
  4. int mul(float a, int b);



Answer: 
Option b: double mul(float a, float b);

Explanation Here

Post a Comment

0 Comments