ExamVeda
Login
Home
This question belongs to C Program Pointer
Pointer
?

What will be the output of the following C code?
#include <stdio.h>
int add(int a, int b)
{
    return a + b;
}
int main()
{
    int (*fn_ptr)(int, int);
    fn_ptr = add;
    printf("The sum of two numbers is: %d", (int)fn_ptr(2, 3));
}

Answer & Solution
Correct Answer: Option D
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.