Home » C Programming » Pointers » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int calc(int n, int m)
    {
    return n + m;
    }
    int main()
    {
    int (*calc_ptr)(int, int);
    calc_ptr = calc;
    printf("The Addition of two numbers is: %d", (int)calc_ptr(21, 13));
    }
    1. 21
    2. 13
    3. Compilation Error
    4. 34
    5. None of these
Correct Option: D

34



Your comments will be displayed only after manual approval.