(Assuming the function to be assigned is "int multi(int, int);")
a) int (*fn_ptr)(int, int) = multi;
b) int *fn_ptr(int, int) = multi;
c) int *fn_ptr(int, int) = &multi;
d) none of the mentioned
What is the correct way to declare and assign a function pointer?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What is the correct way to declare and assign a function pointer?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!