1.

What is the output of this program?
#include 
using namespace std;
int addition(int num1, int num2)
{
return num1 + num2 + 13;
}
int calculation(int num1, int num2, int (*funcall)(int, int))
{
return (*funcall)(num1, num2);
}
int main()
{
int n;
int (*plus)(int, int) = addition;
n = calculation(12, 20, plus);
cout << n;
return 0;
}

A. 45
B. 12
C. 13
D. 10
E. None of these
Answer» B. 12


Discussion

No Comment Found

Related MCQs