Home » C++ Programming » Pointers » Question
  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;
    }
    1. N66
    2. 6N6
    3. 66N
    4. 126
    5. None of these
Correct Option: A

N66



Your comments will be displayed only after manual approval.