How do you declare A pointer to function which receives an int pointer and returns a float pointer



How do you declare A pointer to function which receives an int pointer and returns a float pointer..

Answer / Sunakshi Krishna Sharma

You can declare it as: `typedef float (*FunPtr)(int*); FunPtr pfunc = someFunctionName;`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What are compilers in c++?

1 Answers  


What happens when the extern "c" char func (char*,waste) executes?

1 Answers  


How do you traverse a btree in backward in-order?

1 Answers  


Which of the following operator cannot be overloaded?

2 Answers   TCL,


Keyword mean in declaration?

1 Answers  


Is multimap sorted c++?

1 Answers  


What is a sequence in c++?

1 Answers  


What are static type checking?

1 Answers  


What is a literal in c++?

1 Answers  


What does catch(…) mean?

1 Answers  


What are the c++ access specifiers?

2 Answers  


Is c++ primer good for beginners?

1 Answers  


Categories