1.

What is the output of this program?
#include 
using namespace std;
int function(char, int);
int (*ptr) (char, int) = function;
int main()
{
(*ptr)('I', 6);
ptr(12, 6);
return 0;
}
int function(char n, int num)
{
cout << n << num;
return 0;
}

A. N66
B. 6N6
C. 66N
D. 126
E. None of these
Answer» B. 6N6


Discussion

No Comment Found

Related MCQs