How will you declare an array of three function pointers where each function receives two ints and returns a float?



How will you declare an array of three function pointers where each function receives two ints and r..

Answer / Mithilesh Prasad

"To declare an array of three function pointers, each taking two int arguments and returning a float, use the following syntax: `float (*arr[3])(int, int);`. To assign functions to this array, you would need to define your functions with the appropriate signature first."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

what value is returned to operating system after program execution?

1 Answers  


nic scientist exam

1 Answers   NIC,


write c program without semicolon

11 Answers   MindTech, TCS, Wipro,


what is the difference between exit() and _exit() functions?

2 Answers  


What is an arrays?

1 Answers  


What are the 5 types of inheritance in c ++?

1 Answers  


in b=6.6/a+(2*a+(3*c)/a*d)/(2/n); which operation will be performed first a) 6.6/a b) 2*a c) 3*c d) 2/n

1 Answers  


Should a function contain a return statement if it does not return a value?

1 Answers  


Write a C++ program to give the number of days in each month according to what the user entered. example: the user enters June the program must count number of days from January up to June

0 Answers  


main() { int i; printf("%d",i^i); }

1 Answers  


What is the use of pointers in C?

1 Answers   akamai, Impetus, Motorola, Tavant Technologies, Virtusa,


What do you understand by normalization of pointers?

1 Answers  


Categories