1.

What is the output of this program?
#include <iostream>
using namespace std;
int Calculate (int p, int q)
{
return (p * q);
}
float Calculate (float p, float q)
{
return (p / q);
}
int main ()
{
int var1 = 4, var2 = 3;
float num1 = 6.25, num2 = 5.35;
cout << Calculate (var1, var2);
cout << Calculate (num1, num2);
return 0;
}

A. 12 1.58
B. 12 0.005
C. Compilation Error
D. 12 1.25
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs