1.

What is the output of the following program?
#include 
using namespace std;
int calculate(int p, int q)
{
return (p * q);
}
float calculate (float p, float q)
{
return (p / q);
}
int main()
{
int n = 10, m = 3;
float r = 30.0, s = 10.0;
cout << calculate(n, m) < cout << calculate (r, s);
return 0;
}

A. 10 3
B. 30.0 10.0
C. 30 3
D. Compilation Error
E. None of these
Answer» D. Compilation Error


Discussion

No Comment Found