1.

What is the output of this program?
#include <iostream>
using namespace std;
template <typename T = float, int count = 3>
T Multiply(T num1)
{
for(int kk = 0; kk < count; kk++)
{
num1 = num1 * num1;
}
return num1;
};
int main()
{
float num2 = 1.25;
cout << num2 << " " << Multiply<>(num2) << endl;
}

A. 1.25
B. 5.96046
C. 1.25 5.96046
D. 5.96046 1.25
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs